Slide 7
Slide 7 text
7
Copyright © Merpay, Inc. All Rights Reserved.
class ViewController: UIViewController {
func showTutorialFlow() {
let tutorialOne = tutorialOneBalloonView()
let tutorialTwo = tutorialTwoBalloonView()
let tutorialThree = tutorialThreeBalloonView()
tutorialOne.onTapped = { [weak tutorialOne] in
tutorialOne?.dismiss()
tutorialTwo.show()
}
tutorialTwo.onTapped = { [weak tutorialTwo] in
tutorialTwo?.dismiss()
tutorialThree.show()
}
tutorialThree.onTapped = { [weak self, weak tutorialThree] in
tutorialThree?.dismiss()
self?.hideGrayOverlay { }
}
showGrayOverlay {
tutorialOne.show()
}
}