Latest 0.1.2
Homepage https://github.com/nil-biribiri/NilTutorial
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Create app tutorial view using UICollectionView

Preview

Requirements

Swift > 3.0

Installation

NilTutorial is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'NilTutorial'

Usages

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

Preview

import NilTutorial

let appTutorialVC = NilTutorialViewController(imagesSet: []) {
            // Add skip button action here
}
        self.present(appTutorialVC, animated: true, completion: nil)

Add TutorialVC into SubView

Preview

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)      

Author

NilNilNil, [email protected]

License

NilTutorial is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NilTutorial",
    "version": "0.1.2",
    "summary": "Tutorial Page writing in Swift.",
    "description": "Create tutorial using UICollectionView",
    "homepage": "https://github.com/nil-biribiri/NilTutorial",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "NilNilNil": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nil-biribiri/NilTutorial.git",
        "branch": "master",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "*.{h,m,swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This