Contents

interactive(timingCurve:)

Creates a new configuration that interactively interpolates the transition’s effect as the view is scrolled into the visible region of the container.

Declaration

static func interactive(timingCurve: UnitCurve = .easeInOut) -> ScrollTransitionConfiguration

Parameters

  • timingCurve:

    The curve that adjusts the pace at which the effect is interpolated between phases of the transition. For example, an .easeIn curve causes interpolation to begin slowly as the view reaches the edge of the scroll view, then speed up as it reaches the visible threshold. The curve is applied ‘forward’ while the view is appearing, meaning that time zero corresponds to the view being just hidden, and time 1.0 corresponds to the pont at which the view reaches the configuration threshold. This also means that the timing curve is applied in reversed while the view is moving away from the center of the scroll view.

Return Value

A configuration that interactively interpolates between transition phases based on the current scroll position.

See Also

Getting the configuration