Animation

public struct Animation : Encodable

TODO.

  • Describes how a new animate call interacts with currently-running animations.

    If immediate, current animations are interrupted and the new animation is started. If next, the current frame is allowed to complete, after which the new animation is started. If afterall all existing frames are animated to completion before the new animation is started.

    See more

    Declaration

    Swift

    public enum Mode : String, Encodable
  • Describes how a new animate call interacts with currently-running animations.

    If immediate, current animations are interrupted and the new animation is started. If next, the current frame is allowed to complete, after which the new animation is started. If afterall all existing frames are animated to completion before the new animation is started.

    Declaration

    Swift

    public var mode: Mode?
  • The direction in which to play the frames triggered by the animation call

    See more

    Declaration

    Swift

    public enum Direction : String, Encodable
  • The direction in which to play the frames triggered by the animation call

    Declaration

    Swift

    public var direction: Direction?
  • Play frames starting at the current frame instead of the beginning.

    Declaration

    Swift

    public var fromCurrent: Bool?
  • Undocumented

    See more

    Declaration

    Swift

    public struct Frame : Encodable
  • Undocumented

    Declaration

    Swift

    public var frame: Frame?
  • Undocumented

    See more

    Declaration

    Swift

    public struct Transition : Encodable
  • Undocumented

    Declaration

    Swift

    public var transition: Transition?
  • Creates Animation object with specified properties.

    Declaration

    Swift

    public init(mode: Mode? = nil, direction: Direction? = nil, fromCurrent: Bool? = nil, frame:
            Frame? = nil, transition: Transition? = nil)

    Parameters

    mode

    Describes how a new animate call interacts with currently-running animations.

    direction

    The direction in which to play the frames triggered by the animation call

    fromCurrent

    Play frames starting at the current frame instead of the beginning.

    frame

    transition