https://github.com/frog-frog/pagemaster
PageMaster is a wrapper class for easier use of UIPageViewController.
https://github.com/frog-frog/pagemaster
ios swift uikit uipageviewcontroller
Last synced: 6 months ago
JSON representation
PageMaster is a wrapper class for easier use of UIPageViewController.
- Host: GitHub
- URL: https://github.com/frog-frog/pagemaster
- Owner: Frog-Frog
- License: mit
- Created: 2019-02-09T15:43:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-10T15:34:19.000Z (over 7 years ago)
- Last Synced: 2025-04-10T00:16:37.408Z (about 1 year ago)
- Topics: ios, swift, uikit, uipageviewcontroller
- Language: Swift
- Homepage:
- Size: 32.2 KB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PageMaster
## Description
PageMaster is a wrapper class for easier use of UIPageViewController.
## Feature
- Easier than UIPageViewController
- Infinite paging
## Requirements
- iOS 8.0+
- Xcode 10.1+
- Swift 4.2+
## Demo

## Usage
### Setup
```swift
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)
}
```
### PageDelegate
```swift
extension ViewController: PageMasterDelegate {
func pageMaster(_ master: PageMaster, didChangePage page: Int) {
// Here you can create a process after changing the page.
}
}
```
## Install
### CocoaPods
Add this to your Podfile.
```PodFile
pod 'PageMaster'
```
### Carthage
Add this to your Cartfile.
```Cartfile
github "PKPK-Carnage/PageMaster"
```
## Help
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.
## Licence
[MIT](https://github.com/PKPK-Carnage/PageViewController/blob/master/LICENSE)
## Author
[PKPK-Carnage🦎](https://github.com/PKPK-Carnage)