scrollTransition(_:axis:transition:) | Apple Developer Documentation

Applies the given transition, animating between the phases of the transition as this view appears and disappears within the visible region of the containing scroll view.