Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 357 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 357 Bytes

CustomAnimatableLayerProperty

This demo shows how to add custom animatable property to CALayer, which can be animated in UIView animation block with system supported options like .curveEaseInOut.

UIView.animate(withDuration: 2.0, delay: 0, options: .curveEaseInOut, animations: {
    self.animatableLabel?.toValue = 100
}, completion: nil)