Created
September 16, 2019 20:33
-
-
Save mikehouse/5407ca8af4e4720dee4651b1de9dfc69 to your computer and use it in GitHub Desktop.
CA Animation
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
// Do not jump to initila state after animation completed. | |
CATransaction.begin() | |
CATransaction.setValue(kCFBooleanTrue, forKey: kCATransactionDisableActions) | |
self.maskShape.path = toPath | |
CATransaction.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment