CALayer
extension CALayer
-
Add the specified animation object to the layer’s render tree with a completion closure.
Declaration
Swift
public func add(_ animation: CAAnimation, forKey key: String?, withCompletion completion: @escaping (Bool) -> Void)Parameters
animationThe animation to be added to the render tree.
keyA string that identifier the animation.
completionA closure that is executed upon completion of the animation.
View on GitHub
Install in Dash
CALayer Extension Reference