Usage
SwiftUI
M3ETextField("Email", text: $email, variant: .outlined, supportingText: "We never share it",
leadingIcon: "mail")
M3ETextField("Password", text: $pw, error: pw.count < 8 ? "Too short" : nil, secure: true)API
| Property | SwiftUI | Description |
|---|---|---|
| variant | .filled .outlined | Style. |
| error | error: String? | Shows the error state and message. |
| counter | maxLength: | Character counter. |
Guidelines
- Use one style per form.
- Explain errors in plain words and how to fix them.