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.
-
Store the text field value
Declaration
Swift
@Binding @MainActor var textField: String { get nonmutating set } -
Store the place holder
Declaration
Swift
@MainActor var placeholder: String -
Store the QR field type
Declaration
Swift
@MainActor var field: QRFieldType -
Store the next field
Declaration
Swift
@MainActor var nextField: QRFieldType -
Store the focus state for text field
Declaration
Swift
@MainActor var focusedField: FocusState<QRFieldType?>.Binding -
Store the bool value stateing of the field is focused or not
Declaration
Swift
@FocusState @MainActor private var isFocused: Bool { get nonmutating set } -
Declaration
Swift
@MainActor var body: some View { get }