---
title: "scrollEdgeEffectStyle(_:for:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/scrolledgeeffectstyle(_:for:)"
---

# scrollEdgeEffectStyle(_:for:)

Configures the scroll edge effect style for scroll views within this hierarchy.

## Declaration

```swift
nonisolated func scrollEdgeEffectStyle(_ style: ScrollEdgeEffectStyle?, for edges: Edge.Set) -> some View

```

## Discussion

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

### Configuring scroll edge effects

- [scrollEdgeEffectHidden(_:for:)](swiftui/view/scrolledgeeffecthidden(_:for:).md)
- [ScrollEdgeEffectStyle](swiftui/scrolledgeeffectstyle.md)
- [safeAreaBar(edge:alignment:spacing:content:)](swiftui/view/safeareabar(edge:alignment:spacing:content:).md)
