AppleCABasicAnimation - UBogun/Xojo-iosLib GitHub Wiki
Inherits from AppleCAPropertyAnimation
Status: incomplete, a few more animatable properties are missing
Memoryleak test: very tiny leak
CABasicAnimation is the CAAnimation subclass you will use most often of all types. It is meant for animating a single property of a CoreAnimationLayer. You create it with one of the Constructors and attach it to a iOSLibCALayer with its AddAnimation method, or you stack them up in an iOSLibAnimationGroup and add this one.
##Constructor Constructor (Key as Properties, fromValue As ValueType, toValue As ValueType): This is the scheme each constuctor follows. The currently animatable properties are listed in AppleCAAnimation.properties. Chose one of them and add the appropriate start- and endvalue. For example:
- Dim myAnimation As New AppleCABasicAnimation (AppleCABasicAnimation.properties.BackgroundColor, startColor (As AppleCGColor), endColor (As AppleCGColor) creates an animation for the backgroundcolor of the layer.
Properties
ByValue As AppleGeneralObject: An optional value of the same kind you created the animation with that is taken into account when performing the animation.
FromValue As AppleGeneralObject: The startvalue you passed to the constructor.
ToValue As AppleGeneralObject: The endvalue you passed to the constructor.