Latest 0.1.1
Homepage https://github.com/skx926/KSGuideController
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

License MIT 
CocoaPods 
CocoaPods 
Support 

A beautiful animated novice guide controller written in Swift.

Demo~

Features

  • Animated page transition.
  • A batch of properties for customization.
  • Cache support.

Usage

Swift

import KSGuideController

var items = [KSGuideItem]()
for button in buttons {
    let n = Int(arc4random()) % string.characters.count
    let index = string.index(string.startIndex, offsetBy: Int(n))
    let text = string.substring(to: index)
    let item = KSGuideItem(sourceView: button, text: text)
    items.append(item)
}
let vc = KSGuideController(items: items, key: "MainGuide")
vc.setIndexWillChangeBlock { (index, item) in
    print("Index will change to (index)")
}
vc.setIndexDidChangeBlock { (index, item) in
    print("Index did change to (index)")
}
vc.show(from: self) { 
    print("Guide controller has been dismissed")
}

Installation

Cocoapods

  1. Update cocoapods to the latest version.
  2. Add pod 'KSGuideController' to your Podfile.
  3. Run pod install or pod update.
  4. Import KSGuideController module.

Requirements

This library requires iOS 8.0+ and Xcode 8.0+.

License

KSGuideController is provided under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "KSGuideController",
    "version": "0.1.1",
    "summary": "A beautiful animated novice guide controller.",
    "homepage": "https://github.com/skx926/KSGuideController",
    "license": "MIT",
    "authors": {
        "Kyle Sun": "[email protected]"
    },
    "social_media_url": "https://twitter.com/skx926",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/skx926/KSGuideController.git",
        "tag": "0.1.1"
    },
    "source_files": [
        "KSGuideController",
        "KSGuideController/**/*.{swift}"
    ],
    "resources": "KSGuideController/Resources/*.png",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This