| | |
| | | |
| | | class LoginVC: BaseViewController { |
| | | |
| | | @IBOutlet weak var tf_email: QMUITextField! |
| | | @IBOutlet weak var tf_pwd: QMUITextField! |
| | | |
| | | |
| | | override func viewDidLoad() { |
| | | super.viewDidLoad() |
| | | |
| | | // Do any additional setup after loading the view. |
| | | } |
| | | |
| | | |
| | | /* |
| | | // 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. |
| | | @IBAction func forgotAction(_ sender: UIButton) { |
| | | let pwdVC = ForgotPwdVC() |
| | | push(vc: pwdVC) |
| | | } |
| | | */ |
| | | |
| | | @IBAction func loginAction(_ sender: UIButton) { |
| | | |
| | | let snapView = screnDelegate?.window?.snapshotView(afterScreenUpdates: true) |
| | | let nav = BaseNavigationController(rootViewController: HomeVC()) |
| | | screnDelegate?.window?.rootViewController = nav |
| | | screnDelegate?.window?.rootViewController?.view.addSubview(snapView!) |
| | | |
| | | UIView.animate(withDuration: 1.5) { |
| | | snapView?.alpha = 0 |
| | | snapView?.transform3D = CATransform3DMakeScale(1.5, 1.5, 1.5) |
| | | } completion: { _ in |
| | | snapView?.removeFromSuperview() |
| | | } |
| | | } |
| | | } |