PageMaster is a wrapper class for easier use of UIPageViewController.
- Easier than UIPageViewController
- Infinite paging
- iOS 8.0+
- Xcode 10.1+
- Swift 4.2+
import PageMaster
private let pageMaster = PageMaster([])
private func setupPageMaster() {
self.pageMaster.pageDelegate = self
let vcList: [UIViewController] = [ /** Set your UIViewControllers */ ]
self.pageMaster.setup(vcList)
self.addChild(self.pageMaster)
self.view.addSubview(self.pageMaster.view)
self.pageMaster.view.frame = self.view.bounds
self.pageMaster.didMove(toParent: self)
}
extension ViewController: PageMasterDelegate {
func pageMaster(_ master: PageMaster, didChangePage page: Int) {
// Here you can create a process after changing the page.
}
}
Add this to your Podfile.
pod 'PageMaster'
Add this to your Cartfile.
github "PKPK-Carnage/PageMaster"
If you want to support this framework, you can do these things.
-
Please let us know if you have any requests for me.
I will do my best to live up to your expectations.
-
You can make contribute code, issues and pull requests.
I promise to confirm them.