Last active
January 3, 2019 15:33
-
-
Save myrickchow32/154bcb66ce07054bb9f287ef5c27fb76 to your computer and use it in GitHub Desktop.
This file contains 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
@IBOutlet var easeInLabelLeadingConstraint: NSLayoutConstraint! | |
@IBAction func startAnimationButtonAction(_ sender: Any) { | |
// Print out the corresponding information of easeInLabel before and after animation | |
print("\(isAnimated ? "easeInLabel has been moved." : "easeInLabel is at its original position.")") | |
print("easeInLabelLeadingConstraint: \(easeInLabelLeadingConstraint.constant)") | |
print("easeInLabel frame: \(easeInLabel.frame)") | |
print("*********************************************") | |
// Animation function ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment