[![CI Status](http://img.shields.io/travis/Chenglu Li/TutorialScrollViewController.svg?style=flat)](https://travis-ci.org/Chenglu Li/TutorialScrollViewController)
TutorialScrollViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TutorialScrollViewController"
To run the example project, clone the repo, and run pod install
from the Example directory first.
Then, import the framework/library:
import TutorialScrollViewController
Now you are good to use the pod! TutorialScrollViewController is a subclass of PageController. So it would be better if you could change your viewController in storyboard to a pageViewController so that you can customize your "transitionStyle", as it is a read-only property.
To instantiate the controller, simply assign your target viewControllers' storyboard [ids] to this property:
override func viewDidLoad() {
super.viewDidLoad()
// Instantiate your viewControllers that you wanna include in the pageController
self.controllerStoryboardIds = ["Red","Green","Blue"] // Notice: it is an array of ids
}
Build and Run!
// Enable pageLooping so that you can loop around pages
self.enablePageLooping = true
// Enable tapping action on page control
self.enableTappingPageControl = true
// Whether to show pageControl or not
self.pageControlIsHidden = false
// Adjust pageControl's y position
self.pageControlYPosition = 80.0
// Adjust pageControl's x position
self.pageControlXPosition = 0.0
Chenglu Li, kabelee92@gmail.com
TutorialScrollViewController is available under the MIT license. See the LICENSE file for more info.