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