Pager is the simplest and best way to implement sliding view controllers.
CocoaPods is a dependency manager for Cocoa projects.
CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install the Pager with the following command:
pod 'Pager'
Just copy PagerController.swift files to your project.
Subclass PagerController (as it's a UIViewController
subclass) and implement dataSource methods in the subclass.
In the subclass assign self as dataSource,
override func viewDidLoad() {
super.viewDidLoad()
self.dataSource = self
}
Pager is a port from CKViewPager to swift.
Pager is MIT licensed. See the LICENCE file for more info.