---
title: "accessibilityScrollAction(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/modifiedcontent/accessibilityscrollaction(_:)"
---

# accessibilityScrollAction(_:)

Adds an accessibility scroll action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.

## Declaration

```swift
nonisolated func accessibilityScrollAction(_ handler: @escaping (Edge) -> Void) -> ModifiedContent<Content, Modifier>
```

## Discussion

Discussion For example, this is how a scroll action to trigger a refresh could be added to a view. var body: some View {     ScrollView {         ContentView()     }     .accessibilityScrollAction { edge in         if edge == .top {             // Refresh content         }     } }
