SubmitLabel
A semantic label describing the label of submission within a view hierarchy.
Declaration
type SubmitLabel =
| 'continue'
| 'done'
| 'go'
| 'join'
| 'next'
| 'return'
| 'route'
| 'search'
| 'send';struct SubmitLabelPass a literal, or build one with SwiftUI.SubmitLabel from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'continue'SwiftUI.SubmitLabel.continueDefines a submit label with text of "Continue".
'done'SwiftUI.SubmitLabel.doneDefines a submit label with text of "Done".
'go'SwiftUI.SubmitLabel.goDefines a submit label with text of "Go".
'join'SwiftUI.SubmitLabel.joinDefines a submit label with text of "Join".
'next'SwiftUI.SubmitLabel.nextDefines a submit label with text of "Next".
'return'SwiftUI.SubmitLabel.returnDefines a submit label with text of "Return".
'route'SwiftUI.SubmitLabel.routeDefines a submit label with text of "Route".
'search'SwiftUI.SubmitLabel.searchDefines a submit label with text of "Search".
'send'SwiftUI.SubmitLabel.sendDefines a submit label with text of "Send".
Overview
A submit label is a description of a submission action provided to a
view hierarchy using the View.onSubmit(of:_:) modifier.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Text and symbols.
- DisabledTextSelectabilityA selectability type that disables text selection by the person using your app.
- EnabledTextSelectabilityA selectability type that enables text selection by the person using your app.
- FindContextThe status of the find navigator for views which support text editing.
- FixedTextVariantThe default text variant preference that chooses the largest available variant.
- FontAn environment-dependent font.
- FontChainFont with chained calls: SwiftUI.Font.bold(...).
- FontContextInformation used to resolve a font.
- FontDesignA design to use for fonts.
- FontLeadingA line spacing adjustment that you can apply to a font.
- FontWeightA weight to use for fonts.
- FontWidthA width to use for fonts that have multiple widths.
- SubmitTriggersA type that defines various triggers that result in the firing of a submission action.