SubmitLabel

A semantic label describing the label of submission within a view hierarchy.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+SubmitLabel in SwiftUI

Declaration

React
type SubmitLabel =
  | 'continue'
  | 'done'
  | 'go'
  | 'join'
  | 'next'
  | 'return'
  | 'route'
  | 'search'
  | 'send';
Swift
struct SubmitLabel

Pass a literal, or build one with SwiftUI.SubmitLabel from import { SwiftUI } from 'swiftui-react-native'.

Type properties

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.