TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2018 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Nilc.nolan.
Create app tutorial view using UICollectionView
iOS 8.0+
Xcode 8.3+
Swift 3.0+
NilTutorial is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'NilTutorial'
In AppDelegate
import NilTutorial
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let tutorialVC = NilTutorialViewController(imagesSet: []) {
// Add action afer skip button pressed here
let mainVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ViewController") as! ViewController
self.window?.rootViewController = mainVC
}
self.window?.rootViewController = tutorialVC
return true
}
Present new TutorialVC
import NilTutorial
let appTutorialVC = NilTutorialViewController(imagesSet: []) {
// Add skip button action here
}
self.present(appTutorialVC, animated: true, completion: nil)
Add TutorialVC into SubView
let tutorialVC = NilTutorialViewController(imagesSet: []) {
// Add action afer skip button pressed here
print("Skip Button Pressed!!!")
// Remove all child VC
self.removeAllChildViewController()
self.subView.removeAllSubViews()
}
self.configureChildViewController(childController: tutorialVC, onView: self.subView, withFadeAnimate: true)
NilNilNil, [email protected]
NilTutorial is available under the MIT license. See the LICENSE file for more info.