Modifiers
onSubmit
Adds an action to perform when the user submits a value to this view (e.g. pressing return in a text field).
onSubmit(handler)
| Parameter | Type | Description |
|---|---|---|
handler | () => void | Function to call on submit. |
Adds an action to perform when the user submits a value to this view (e.g. pressing return in a text field).
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- onSubmit (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)
onScrollPhaseChange
Fires when SwiftUI's scroll phase changes (e.g., the user begins dragging, the scroll view starts decelerating, or scrolling settles to idle). The second argument is the scroll geometry sampled at the phase transition, useful for reading the final offset on settle without subscribing to per-frame onScrollGeometryChange.
onTapGesture
Adds a tap gesture recognizer.