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
AFadeStep cannot be the first step in a sequence. A FadeStep defined as such will be ignored.
-
The desired time between this
FadeStepand the preceding or subsequentScrollStepin a sequence.FadeStepswith a negativetimeStepvalue will be associated only with an immediately-subsequentScrollStepstep in the sequence.FadeStepswith a positivetimeStepvalue will be associated only with an immediately-priorScrollStepstep in the sequence.Note
AFadeStepwith atimeStepvalue of 0.0 will have no effect, and is the same as defining the fade state with aScrollStep.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
.leadingand.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