Board 2.0.0

Board 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2018
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Meniny.



Board 2.0.0

Requirements

  • iOS 8.0+
  • Xcode 8 with Swift 3

Installation

CocoaPods

pod 'Board'

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)")
        }
    }
}