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. | |
// MARK: - Private | |
func checkUser() { | |
// some code here and then | |
InitialViewControllerAnimations.animateLoginPresentation(imageHorizontalConstraint: ivLogoHorizontalConstraint, controlsContainer: controlsContainer) | |
} |
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 InitialViewControllerAnimations: NSObject { | |
class func animateLoginPresentation(imageHorizontalConstraint: NSLayoutConstraint, controlsContainer: UIView) { | |
imageHorizontalConstraint.constant = -150 | |
UIView.animate(withDuration: 0.7, delay: 0.5, options: .curveEaseInOut, animations: { | |
AnimationHelper.currentViewController()?.view.layoutIfNeeded() |
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 weak var controlsContainer: UIView! |
NewerOlder