Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pffan91/1ef7d1677e595becafa4f59ba891225a to your computer and use it in GitHub Desktop.
Save pffan91/1ef7d1677e595becafa4f59ba891225a to your computer and use it in GitHub Desktop.
DecomposingViewControllerAnimations_FinalViewControllerClass
// 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