// // ResetPassUserNameVC.swift // WOKA // // Created by Bilal on 03/05/2024. // import UIKit class ResetPassUserNameVC: UIViewController { @IBOutlet weak var usernameTF: TextFieldShadow! @IBOutlet weak var nextBtn: LocalisedElementsButton! override func viewDidLoad() { super.viewDidLoad() initView() } func initView(){ usernameTF.roundCorner() let color1 = #colorLiteral(red: 0.144693464, green: 0.1426281333, blue: 0.6686832905, alpha: 1) let color2 = #colorLiteral(red: 0.6901960784, green: 0.2745098039, blue: 0.7568627451, alpha: 1) nextBtn.applyGradient(colors: [color1, color2], startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0.8, y: 0)) } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) navigationController?.setNavigationBarHidden(false, animated: animated) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.setNavigationBarHidden(true, animated: animated) } @IBAction func nextBtnTapped(_ sender: LocalisedElementsButton) { let sb = UIStoryboard(name: K.StoryBoard.authenticationSB, bundle: nil) let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Authentication.oTPVC) as! OTPVC vc.navigateCheck = .newPass self.navigationController?.pushViewController(vc, animated: true) } }