Skip to content

Instantly share code, notes, and snippets.

@myrickchow32
Last active January 3, 2019 15:33
Show Gist options
  • Save myrickchow32/154bcb66ce07054bb9f287ef5c27fb76 to your computer and use it in GitHub Desktop.
Save myrickchow32/154bcb66ce07054bb9f287ef5c27fb76 to your computer and use it in GitHub Desktop.
@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