scrollEdgeEffectStyle
Configures the scroll edge effect style for scroll views within this hierarchy.
Declaration
compose().scrollEdgeEffectStyle(
style: SwiftUI.ScrollEdgeEffectStyle | null,
options: {
for: SwiftUI.EdgeSet;
}
)nonisolated func scrollEdgeEffectStyle(
_ style: ScrollEdgeEffectStyle?,
for edges: Edge.Set
) -> some ViewParameters
style*SwiftUI.ScrollEdgeEffectStyle | nulloptions.for*SwiftUI.EdgeSet
Discussion
By default, a scroll view renders an automatic edge effect. Use this modifier to change the scroll edge effect style.
ScrollView {
LazyVStack {
ForEach(data) { item in
RowView(item)
}
}
}
.scrollEdgeEffectStyle(.hard, for: .all)See also
More in Styles.
- arrangementViewStyleSets the style for arrangement views within this view.
- backgroundStyleSets the specified style to render backgrounds within the view.
- buttonStyleSets the style for buttons within this view to a button style with a custom appearance and custom interaction behavior.
- controlGroupStyleSets the style for control groups within this view.
- datePickerStyleSets the style for date pickers within this view.
- disclosureGroupStyleSets the style for disclosure groups within this view.
- foregroundStyleSets the primary, secondary, and tertiary levels of the foreground style.
- formStyleSets the style for forms in a view hierarchy.
- gaugeStyleSets the style for gauges within this view.
- groupBoxStyleSets the style for group boxes within this view.
- indexViewStyleSets the style for the index view within the current environment.
- labeledContentStyleSets a style for labeled content.