Latest 0.1.3
License MIT
Platforms ios 9.0

CI Status

alt text


iOS 9+


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

pod "SimpleWizzard"


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

Code Examples

Creating a ViewController that will be encapsulated on SimpleWizzard

This controller needs to implement ChangeStepDelegate that will tell the Wizzard when to change the Step or not.

import SimpleWizzard

class SampleStepViewController: UIViewController, ChangeStepDelegate {

    func verifyNext() -> Bool {
        return false

    func verifyPrev() -> Bool {
        return true
There are two ways to use it

Return false into veryfyNext() function and force the changing

func verifyNext() -> Bool {
    return false

Or simply returning true on the function

func verifyNext() -> Bool {
    return true

The same applies for changing from current to previous ViewController.

Creating a ViewController extending from SimpleWizzardViewController

The created class has to implement CancelDelegate. This class will be responsible for canceling the wizzard progress. The user needs to instantiate every ViewController that it wants to use, before use the function generate.

import SimpleWizzard

class SampleWizardController: SimpleWizardViewController, CancelDelegate {

    override func viewDidLoad() {

        // Setting the Delegate Cancel
        self.cancelDelegate = self

        // Creating the steps
        var viewControllerList = [UIViewController]()

        let mainStoryboard = UIStoryboard(name: "Main", bundle: nil)
        for i in 0...5 {
            if let controller = mainStoryboard.instantiateViewController(withIdentifier: "sampleStepSID") as? SampleStepViewController {
                controller.pageNumberText = i.description

        // Setting the images
        self.nextImage = UIImage(named: "right")
        self.prevImage = UIImage(named: "left")
        self.doneImage = UIImage(named: "done_wizzard")

        // Setting the color of UIPageDots
        self.pageDots?.currentPageIndicatorTintColor =
        self.pageDots?.pageIndicatorTintColor = UIColor.lightGray

        // Generating the SimpleWizard

        // Setting Title
        self.title = "SimpleWizzard"

    func cancel() {
        self.dismiss(animated: true, completion: nil)


Higor Borjaille

E-mail: [email protected]


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

Latest podspec

    "name": "SimpleWizzard",
    "version": "0.1.3",
    "summary": "A library that helps the user to build a Stepper for its form or anything it wants.",
    "description": "A library that helps the user to build a Stepper for its form or anything it wants. Giving it the power to change anything it wants.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "hborjaille": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.3"
    "platforms": {
        "ios": "9.0"
    "source_files": "SimpleWizzard/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This