DPSwiftExtension
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Usage
DPPagingScrollViewController
import DPSwiftExtension
class PagingViewController: DPPagingScrollViewController {
override func viewDidLoad() {
super.viewDidLoad()
setupPages()
}
fileprivate func setupPages() {
let view1 = UIView()
let view2 = UIView()
let view3 = UIView()
view1.backgroundColor = .red
view2.backgroundColor = .yellow
view3.backgroundColor = .green
set(pages: [view1, view2, view3])
}
}
Requirements
Installation
DPSwiftExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DPSwiftExtension'
Author
danielpluvia, [email protected]
License
DPSwiftExtension is available under the MIT license. See the LICENSE file for more info.