Contents

scrollEdgeEffectHidden(_:for:)

Hides any scroll edge effects for scroll views within this hierarchy.

Declaration

nonisolated func scrollEdgeEffectHidden(_ hidden: Bool = true, for edges: Edge.Set = .all) -> some View

Discussion

By default, a scroll view renders an automatic edge effect style. Use this modifier to hide any edge effects for scroll views within this hierarchy.

ScrollView {
    LazyVStack {
        ForEach(data) { item in
            RowView(item)
        }
    }
}
.scrollEdgeEffectHidden()

See Also

Configuring scroll edge effects