StyleTransition

public struct StyleTransition : Codable

The transition property for a layer. A transition property controls timing for the interpolation between a transitionable style property’s previous value and new value.

  • Time allotted for transitions to complete in seconds.

    Declaration

    Swift

    public var duration: TimeInterval
  • Length of time before a transition begins in seconds.

    Declaration

    Swift

    public var delay: TimeInterval
  • Initiralizer for StyleTransition

    Declaration

    Swift

    public init(duration: TimeInterval, delay: TimeInterval)

    Parameters

    duration

    Time for transition in seconds.

    delay

    Time before transition begins in seconds.

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws