Skip to content

D-Wang/CustomAnimatableLayerProperty

Repository files navigation

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)

About

A demo for custom animatable property of CALayer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages