Latest 2.0.0
Homepage https://github.com/Meniny/Board
License MIT
Platforms ios 8.0
Dependencies Imagery
Frameworks Foundation, UIKit
Authors

Requirements

  • iOS 8.0+
  • Xcode 8 with Swift 3

Installation

CocoaPods

pod 'Board'

Dependencies

Preview

Board

Usage

let s1 = Board.Page("Step1", "Lorem ipsum", "img_in_xcassets")
let s2 = Board.Page("Step2", "Lorem ipsum", "home_avatar")
let s3 = Board.Page("Step3", "Lorem ipsum", "http://meniny.cn/assets/images/default.jpg")

let alertView = Board(pages: [s1, s2, s3])
alertView.delegate = self // BoardDelegate
alertView.show()
class SomeClass: BoardDelegate {
    func board(_ b: Board, didTriggerAction action: Board.Action, step: Int, total: Int) {
        switch action {
        case .skipped:
            print("Board: skipped the (step) step")
        case .completed:
            print("Board: completed!")
        default:
            print("Board: Go to next step! (step)")
        }
    }
}

Latest podspec

{
    "name": "Board",
    "version": "2.0.0",
    "summary": "Board is an alert view for iOS",
    "description": "Board is an alert view written in swift.",
    "homepage": "https://github.com/Meniny/Board",
    "license": "MIT",
    "authors": {
        "Meniny": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/Board.git",
        "tag": "2.0.0"
    },
    "social_media_url": "http://meniny.cn/",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Board/**/*.swift",
    "resources": [
        "Board/**/*.xib",
        "Board/**/*.png"
    ],
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "Imagery": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This