Latest 2.0.4
Homepage https://github.com/tahseen0amin/TZConfettiIntro
License MIT
Platforms ios 8.0
Frameworks UIKit, QuartzCore
Authors

CI Status

Version
License
Platform

confetti

Usage

Subclass TZConfettiIntroViewController

class NewFeatureIntroViewController: TZConfettiIntroViewController

In viewDidLoad() method, before super.viewDidLoad(). Create CIPageView as needed. You can use the default nib or create your own nib and pass it

override func viewDidLoad() {
let page0 = CIPageView()
page0.headingLabel?.text = "FIRST PAGE"
page0.bodyLabel?.text = "You can write anything here....n New line also looks cool"
page0.showNextButton = true
page0.delayBeforeShowing = 2.0

let page1 = CIPageView()
page1.headingLabel?.text = "SECOND PAGE"
page1.showNextButton = true
page1.delayBeforeShowing = 2.0

let page2 = CIPageView(customNib: UINib.init(nibName: "CustomPageView", bundle: nil))
page2.headingLabel?.text = "THIRD PAGE"
page2.showNextButton = true
self.pages = [page0, page1, page2]

super.viewDidLoad()

self.scrollView.isScrollEnabled = false
self.nextButton.backgroundColor = UIColor.init(red: 0.75, green: 0.65, blue: 0.32, alpha: 0.8)
self.nextButton.tintColor = UIColor.white
self.pageControl.isHidden = true

}

Example

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

Installation

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

⚠️ To use with Swift 2.3 please ensure you are using == 1.0.3 ⚠️

⚠️ To use with Swift 3.x please ensure you are using >= 2.0.4 ⚠️

pod "TZConfettiIntro"

Contribution

Thanks to Sudeep Agarwal whose SAConfettiView made this project easy to complete. Please check his documentation to change the confetti type.

Author

Taseen, [email protected]

License

Copyright (c) 2017 Tasin Zarkoob
TZConfettiIntro is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TZConfettiIntro",
    "version": "2.0.4",
    "summary": "Intro Controller with confetti. more info coming soon",
    "description": "A Simple Intro View Controller with confetti animation. Thanks to Sudeep Agarwal, I didn't have to write code for generating confetti. I used his library (SAConfettiView) in my project",
    "homepage": "https://github.com/tahseen0amin/TZConfettiIntro",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Taseen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tahseen0amin/TZConfettiIntro.git",
        "tag": "2.0.4"
    },
    "social_media_url": "https://twitter.com/taseenAmin",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TZConfettiIntro/Classes/**/*",
    "resource_bundles": {
        "TZConfettiIntro": [
            "TZConfettiIntro/Assets/*.png",
            "TZConfettiIntro/Assets/*.xib"
        ]
    },
    "frameworks": [
        "UIKit",
        "QuartzCore"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This