Modifiers
defaultScrollAnchor
Sets the default anchor point for a scroll view's content.
defaultScrollAnchor(anchor)
iOS 17+
| Parameter | Type | Description |
|---|---|---|
anchor | UnitPointValue | null | The anchor point for initial scroll position and content size changes, or null to reset. |
Sets the default anchor point for a scroll view's content.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- defaultScrollAnchor (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)