Latest 1.1
Homepage https://github.com/sumitmukhija/IntroKit
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  1. iOS 8+

Installation

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

pod "IntroKit"

Documentation

To initialize the minimal intro view controller

        let introViewController = IntroKit.fireup(["Get Awesome iOS applications","Built keeping UI/UX in mind","Applications that will make you fall in love","at pseudocode.in"]) { (result) in
            if(result == true)
            {
                //Anything you wish to do, post introduction
            }
            else{
                //error handling
            }
        }
        self.navigationController?.pushViewController(introViewController, animated: true) //you may push or present the intro view controller

Alternate verbose initialization

        let introViewController = IntroKit.fireup(["Stop","Wait","Go"], arrayOfColors: [UIColor.redColor(), UIColor.yellowColor(), UIColor.greenColor()], shouldShowButtons: false, shouldShowSkipLabel: true, completion: { (result) in
            if(result == true)
            {
                //Anything you wish to do, post introduction
            }
            else{
                //error handling
            }
        })
        presentViewController(introViewController, animated: true, completion: nil)

Attributes

Intro texts to be shown (mandatory)

        textArray:[String]

UIColor array of background colors

        arrayOfColors: [UIColor]? 

Boolean that determines visibility of buttons on the left and right edge. The default value is true

        shouldShowButtons: Bool?   

Boolean that determines if the helper label on the first screen should be visible or not. Default is true

        shouldShowSkipLabel:Bool?

Completion block to be called when all the intro cards are swiped. (mandatory)

        completion: (result: Bool) -> Void

Author

Sumit Mukhija
Mail: [email protected]
Facebook: https://www.facebook.com/profile.php?id=1256981685
Twitter: https://twitter.com/sumitmukhija
Contact: +91-8109486933

License

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

Latest podspec

{
    "name": "IntroKit",
    "version": "1.1",
    "summary": "A basic straight-forward easy to use lib for tutorials",
    "homepage": "https://github.com/sumitmukhija/IntroKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sumitmukhija": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sumitmukhija/IntroKit.git",
        "tag": "1.1"
    },
    "social_media_url": "https://twitter.com/sumitmukhija",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "IntroKit/Classes/**/*",
    "resources": "IntroKit/Assets/*{.storyboard,.xcassets}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This