Track

class Track

A Track expresses how the value of a layer’s property is animated over the entire duration of a timeline.

  • The sequence of animations which outline how the value of the layer’s property evolve over time.

    Declaration

    var animations: Array { get }
  • A list of animations which approximate the track’s original animation without the use of step functions.

    Declaration

    var animationsFromKeyvaluesWithSimulatedSteps: Array { get }
  • id

    The track’s unique identifier.

    Declaration

    var id: String { get }
  • A list of images used by the track.

    Declaration

    var images: Array { get }
  • The initial value of the layer’s property.

    Declaration

    var initialValue: Value { get }
  • true if the value of layer’s property does not change over time, false otherwise.

    Declaration

    var isEmpty: Bool { get }
  • A list of keyvalues which approximate the track’s original animation without the use of step functions.

    Declaration

    var keyvaluesWithSimulatedSteps: Array { get }
  • The layer this track is associated to.

    Declaration

    var layer: Layer? { get }
  • The list of chronologically ordered keyvalues which dictate the value of the layer’s property throughout the duration of the timeline.

    Declaration

    var keyvalues: Array { get }
  • The property whose value is animated by this track.

    Declaration

    var property: Property { get }
  • The timeline this track belongs to.

    Declaration

    var timeline: Timeline? { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Track) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.

  • Returns the value of the track at the specified time.

    Declaration

    func valueAt(_ time: Double) -> Any

    Parameters

    time

    The time for which to return the value of the track.

    Return Value

    The value of the track at time time.