Releases: redbooth/SimplePagedView
Releases · redbooth/SimplePagedView
Constraints and Background Fixed for 10.3
Moves the component from a UICollectionView to a UIView
This removes the
self.add(pagedViewController) { (childView) -> [NSLayoutConstraint] in
// Return an array of constraints to apply to the paged view
}
syntax in place of more standard constraint application syntax.
Also included:
// perform some action when the view finishes scrolling
// useful if some sort of reload needs to happen when a user reaches a page
simplePagedView.didFinishScrolling { pageNumber in
// Do what you need to
}
// true if the user is dragging or if scrolling animations haven't completed yet
simplePagedView.isScrolling
- View more reliably moves to the initial page provided in view constructor
Page indicator replaced with custom implementation
Replacing the UIPageControl with a custom implementation affords us significantly more flexibility as evidenced by the new features in this release.
Updates:
- Providing an initial page, dot size, and dot replacement image are all more reliable
- Faster load times with less jank
- Ability to replace any dot with a custom UIImage
let pagedView = SimplePagedView(
imageIndices: [1: #imageLiteral(resourceName: "add")], // will replace the dot at index 1 with a UIImageView
with: green, red, orange
)
let pagedView = SimplePagedView(
// also supports negative indexing similar to Python. This will replace the last dot with a UIImageView
imageIndices: [-1: #imageLiteral(resourceName: "add")],
with: green, red, orange
)
Non-feature updates:
Check out the included example project and playground to try out other features 😄
Inits made public
1.0.2 make inits public
Drop deployment target
1.0.1 update podfile
First Functioning Release
1.0.0 initial commit
0.0.2
Initial Release
Exists purely to get cocoapods up and running.