Wraps a text field in a shared box with optional leading and trailing addons.
Installation
Requires the design system foundation (tokens and theme), plus FLXTextField and FLXSecureField.
Usage
Composition
FLXTextFieldGroup draws a single shared box around an optional leading addon, the field, and an optional trailing addon. FLXTextFieldGroupAddon tints its content with the theme's muted foreground, for an icon, a Text prefix/suffix, or a Button.
There are two initializers: leading-only, and leading-and-trailing. With a single trailing closure, FLXTextFieldGroup(...) { ... } always binds to leading.
Secure variant
FLXSecureTextFieldGroup draws the same box, wrapping FLXSecureField instead of FLXTextField.
Custom styling
FLXTextFieldGroupStyle is an FLX protocol. Override it for a subtree via .flxTextFieldGroupStyle(_:):
configuration.content is the row with the field and addons, and configuration.isFocused tells whether the field has focus.







