Skip to content

Releases: redbooth/SimplePagedView

Constraints and Background Fixed for 10.3

13 Feb 07:41
57a75dd
Compare
Choose a tag to compare
Release 1.3.0

* Fixes page indicator dots for iOS v. 10.3
* Documentation updates

Moves the component from a UICollectionView to a UIView

04 Jan 02:02
92a45db
Compare
Choose a tag to compare

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

19 Dec 09:06
Compare
Choose a tag to compare

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
)

simulator screen shot - iphone 8 - 2018-12-19 at 01 01 53

Non-feature updates:
Check out the included example project and playground to try out other features 😄

Inits made public

15 Dec 01:43
Compare
Choose a tag to compare
1.0.2

make inits public

Drop deployment target

15 Dec 01:24
Compare
Choose a tag to compare
1.0.1

update podfile

First Functioning Release

15 Dec 01:13
Compare
Choose a tag to compare
1.0.0

initial commit

0.0.2

12 Dec 20:45
Compare
Choose a tag to compare
podspec passing linting

Initial Release

12 Dec 20:33
Compare
Choose a tag to compare

Exists purely to get cocoapods up and running.