Contents

ScrollEdgeEffectStyle

A structure that specifies blur transitions between scrolling content and an area with controls, such as toolbars.

Declaration

struct ScrollEdgeEffectStyle

Overview

By default, the system sets an automatic scroll edge effect style to provide a visual transition between scrolling content and stationary controls at both edges of the scroll view in the scrolling direction. The system determines which style to apply based on the platform and context. The hard style provides a more opaque, clearly defined linear boundary, and the soft style provides a subtle blurred transition:

Specify a ScrollEdgeEffectStyle for a scroll view using scrollEdgeEffectStyle(_:for:) when the automatic style the system applies isn’t appropriate for your content and controls. Apply scrollEdgeEffectHidden(_:for:) to a scroll view to remove the scroll edge effect entirely for an edge you specify.

Topics

Creating a scroll edge effect style

See Also

Configuring scroll edge effects