MaterialTextField
@MainActor
struct MaterialTextField : View
This Text field view is used in genrate QR view to take all the personal details of the user before creating a QR code
- placeholder: The placeholder text for the text field.
- field: The field type.
- nextField: The next field.
- focusedField: The focus state for the text field.
- isFocused: A private property to track if the text field is focused or not.
Return Value
A SwiftUI view representing a material text field.
-
Text field value
Declaration
Swift
@Binding @MainActor var textField: String { get nonmutating set }
-
Placeholder text
Declaration
Swift
@MainActor var placeholder: String
-
Field type
Declaration
Swift
@MainActor var field: QRFieldType
-
Next field
Declaration
Swift
@MainActor var nextField: QRFieldType
-
Focus state for text field
Declaration
Swift
@MainActor var focusedField: FocusState<QRFieldType?>.Binding
-
Is focused or not
Declaration
Swift
@FocusState @MainActor private var isFocused: Bool { get nonmutating set }
-
Declaration
Swift
@MainActor var body: some View { get }