Modifiers
scrollIndicators
Controls the visibility of scroll indicators for scrollable views. Mirrors SwiftUI's scrollIndicators(_:axes:) modifier.
scrollIndicators(visibility, axes)
iOS 16+
| Parameter | Type | Description |
|---|---|---|
visibility | 'never' | 'automatic' | 'visible' | 'hidden' | Indicator visibility |
'automatic': platform-default behavior.'visible': prefer showing indicators (may still be hidden by the system).'hidden': prefer hiding indicators (may still be shown by the system).'never': never show indicators.
|
| axes(optional) | 'vertical' \| 'horizontal' \| 'both' | Axes to apply the visibility to. Defaults to 'both'. Default: 'both' |
Controls the visibility of scroll indicators for scrollable views. Mirrors SwiftUI's scrollIndicators(_:axes:) modifier.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- scrollIndicators (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)