IntroScreen
A beautiful intro screen for iOS written in Swift.
How to use:
-
Add a ViewController to your storyboard & set IntroViewController as the class.
-
Add a segue to this ViewController
-
Set the introDataSource to the IntroViewController in prepareForSegue()
-
Configure the ViewController in your data source like this:
Customization
Of course you can also use a custom view controller for the pages. Just extend IntroPageViewController. But you have to give it a clear background, so that the colors are visible.
The colors use the HSV color model. So, you just provide the hue in your Intro Pages.
You can change the saturation & brightness in the IntroViewController for all pages at the same time:
If you want to navigate the pages programmatically (for example if you want to add buttons for this), you can use these methods:
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
IntroScreen is available through CocoaPods. To install
it, simply add the following line to your Podfile: