AWFAnimationTimeline

Objective-C

@interface AWFAnimationTimeline : AWFAnimation

Swift

class AWFAnimationTimeline : AWFAnimation

An AWFAnimationTimeline object is a subclass of AWFAnimation that manages and controls multiple instances of AWFAnimation. All animation instances added to an AWFAnimationTimeline are controlled by a single timeline, resulting in all animations being synced while playing simultaneously.

  • The animation objects currently being controlled by the timeline animation (read-only).

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSArray<AWFAnimation *> *animations;

    Swift

    var animations: [AWFAnimation]? { get }
  • Adds a single animation object to the timeline. *

    Declaration

    Objective-C

    - (void)addAnimations:(nonnull NSArray<AWFAnimation *> *)animations;

    Swift

    func addAnimations(_ animations: [AWFAnimation])

    Parameters

    animations

    The animation object to add.

  • Removes a single animation object to the timeline. *

    Declaration

    Objective-C

    - (void)removeAnimations:(nonnull NSArray<AWFAnimation *> *)animations;

    Swift

    func removeAnimations(_ animations: [AWFAnimation])

    Parameters

    animations

    The animation object to remove.