-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathViewController.swift
27 lines (22 loc) · 955 Bytes
/
ViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// ViewController.swift
// WizardryDemo
//
// Created by Joshua Smith on 5/2/16.
// Copyright © 2016 iJoshSmith. All rights reserved.
//
import UIKit
/// The view controller first seen after the app launches.
final class ViewController: UIViewController {
@IBAction func handleShowSignUpWizardButton(_ sender: UIButton) {
let storyboard = UIStoryboard(name: "SignUpWizard", bundle: nil)
let signUpWizardVC = storyboard.instantiateInitialViewController() as! SignUpWizardViewController
let model = SignUpWizardModel()
let dataSource = SignUpWizardDataSource(model: model)
signUpWizardVC.configureWith(dataSource, completionHandler: { [weak self] (canceled: Bool) in
print("Completed sign up wizard. canceled = \(canceled)")
self?.dismiss(animated: true, completion: nil)
})
present(signUpWizardVC, animated: true, completion: nil)
}
}