Skip to content

Moves the component from a UICollectionView to a UIView

Compare
Choose a tag to compare
@twof twof released this 04 Jan 02:02
· 4 commits to master since this release
92a45db

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