MaterialTextField
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 var textField: String { get nonmutating set } -
Placeholder text
Declaration
Swift
var placeholder: String -
Field type
Declaration
Swift
var field: QRFieldType -
Next field
Declaration
Swift
var nextField: QRFieldType -
Focus state for text field
Declaration
Swift
var focusedField: FocusState<QRFieldType?>.Binding -
Is focused or not
Declaration
Swift
@FocusState private var isFocused: Bool { get nonmutating set } -
Declaration
Swift
var body: some View { get }