FadeStep

public struct FadeStep : MarqueeStep

FadeStep types allow additional edge fade state definitions, around the states defined by the ScrollStep steps of a sequence. FadeStep steps are defined by the time delta to the preceding or subsequent ScrollStep step and the timing function to their edge fade state.

Note

A FadeStep cannot be the first step in a sequence. A FadeStep defined as such will be ignored.
  • The desired time between this FadeStep and the preceding or subsequent ScrollStep in a sequence.

    FadeSteps with a negative timeStep value will be associated only with an immediately-subsequent ScrollStep step in the sequence.

    FadeSteps with a positive timeStep value will be associated only with an immediately-prior ScrollStep step in the sequence.

    Note

    A FadeStep with a timeStep value of 0.0 will have no effect, and is the same as defining the fade state with a ScrollStep.

    Declaration

    Swift

    public let timeStep: CGFloat
  • The animation curve to utilize between the previous fade state in a sequence and this step.

    Declaration

    Swift

    public let timingFunction: UIView.AnimationCurve
  • The option set defining the edge fade state for this fade step.

    Possible options include .leading and .trailing, corresponding to the leading edge of the label scrolling (i.e. the direction of scroll) and trailing edge of the label.

    As an Option Set type, both edge fade states may be defined using an array literal: [.leading, .trailing].

    Declaration

    Swift

    public let edgeFades: EdgeFade