Onboarding will show off your Applicaton Flow. It will help user understand and quick intro of your application.
To run the example project, clone the repo, and run pod install
from the Example directory first.
UIFOnboardingViewController works as a normal controller, just instantiate it and present it.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
if(self.window == nil) {
self.window = UIWindow()
}
var dictionary = [Dictionary<String,String>]()
dictionary = [["imageName":"illustrationScreen-1",
"title":"SIMPLE ABROAD CALLS",
"subTitle":"Wonep converts international calls to local calls"],
["imageName":"illustrationScreen-2",
"title":"FREE WONEP TO WONEP",
"subTitle":"if the person you're calling also has Wonep the call will be entirely free"],
["imageName":"iIllustrationScreen-3",
"title":"NO HIDDEN CHARGES OR FEES",
"subTitle":"We have a very small charge for non-Wonep calls to mobiles or landlines"]]
let onboardingVC = UIFOnboardingViewController.init(dataSource:dictionary, hideStatusBar: true)
onboardingVC.delegate = self
let navigationController = UINavigationController.init(rootViewController: onboardingVC)
self.window?.backgroundColor = .white
self.window?.rootViewController = navigationController
self.window?.makeKeyAndVisible()
return true
}
onboarding is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'onboarding 0.1.5'
onboarding is available under the MIT license. See the LICENSE file for more info.