CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Oct 2016 |
| SPMSupports SPM | ✗ |
Maintained by Mohamed Afifi.
Supports Swift 3
A horizontal scoller view that makes its collection view cells full screen and can optionally wire UIPageControl and a previous and next UIbuttons.
It doesn’t affect the appearance of the controls and doesn’t implement the collection view data source to keep full flexibility while doing the repeated work for a horizontal scroller.
UIView.PagedHorizontalView from identity inspector.
UICollectionView, use the defaults.UIPageControl UIButtons for next and previousUICollectionView to the PagedHorizontalView
UIPageControl to the PagedHorizontalView either the reference outlet pageControl or the pageChanged: action. But not both.UIButtons either the reference outlet nextButton and previousButton or touch up inside action with goToNextPage and goToPreviousPage. But not both, wiring the action and the reference outlet will give unexpected behavior.Alternatively, you can create it from code just as you create a normal UIView and set the properties instead of wiring them as described above for collectionView, pageControl, etc.
You need to set a layout object of kind UICollectionViewFlowLayout for the UICollectionView.
In both cases programmatically or using interface builder, you should set the dataSource for the UICollectionView yourself. This way, you have full flexibility to specify the layout of the scrolling content.
For iOS 8 or later:
PagedHorizontalView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PagedHorizontalView"For iOS 7.x:
Embedded frameworks require a minimum deployment target of iOS 8.
To use PagedHorizontalView with a project targeting iOS 7, you must include PagedHorizontalView.swift directly into your project.
Mohamed Afifi, [email protected]
PagedHorizontalView is available under the MIT license. See the LICENSE file for more info.