Created
April 9, 2017 17:59
-
-
Save pffan91/1ef7d1677e595becafa4f59ba891225a to your computer and use it in GitHub Desktop.
DecomposingViewControllerAnimations_FinalViewControllerClass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Vladyslav Semenchenko on 09/04/2017. | |
// Copyright © 2017 Vladyslav Semenchenko. All rights reserved. | |
import UIKit | |
class InitialViewController: EZViewController { | |
// MARK: - Variables | |
@IBOutlet var sceneAnimations: InitialViewControllerAnimations! | |
// MARK: - ViewController Life Circle | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() | |
} | |
override func viewDidAppear(_ animated: Bool) { | |
super.viewWillAppear(animated) | |
self.checkUser() | |
} | |
// - MARK: - User interactions | |
@IBAction func registrationButtonPressed(_ sender: Any) { | |
self.navigationController?.pushViewController(R.storyboard.unboarding.registrationViewController()!, animated: true) | |
} | |
@IBAction func loginButtonPressed(_ sender: Any) { | |
self.navigationController?.pushViewController(R.storyboard.unboarding.loginViewController()!, animated: true) | |
} | |
// MARK: - Private | |
func checkUser() { | |
// some code here and then | |
sceneAnimations.animateToLoginPresentation() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment