// // AccountOnboardingControllerTutorial.swift // Wallet // // Created by Saveliy Stavitsky on 3/12/21. // Copyright © 2021 AM. All rights reserved. // import UIKit class AccountOnboardingControllerTutorial: UIViewController { @IBOutlet var stepStackView: UIStackView! @IBOutlet var stepImageViewContainer: UIView! @IBOutlet var stepImage: UIImageView! @IBOutlet var textsStackViw: UIStackView! var step = 1 { didSet { textsStackViw.arrangedSubviews.forEach({ $0.isHidden = true }) stepStackView.arrangedSubviews.forEach({ $0.backgroundColor = Asset.fog.color }) stepStackView.arrangedSubviews[0..= 4 { AccountOnboarding.Service.Common().finishedOnboarding = true self.dismiss(animated: true) } else { step += 1 } } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }