To run the example project, clone the repo, and run pod install
from the Example directory first.
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])
}
}
DPSwiftExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DPSwiftExtension'
danielpluvia, danielpluvia@outlook.com
DPSwiftExtension is available under the MIT license. See the LICENSE file for more info.