FioriSwiftUICore provides a set of form view components that share a consistent Fiori appearance and validation behaviour. Each component accepts a ControlState to move between normal, disabled, and read-only states, and most support an inline error message.
TextFieldFormView
A single-line text field with a title label, placeholder, character count, and optional validation error.Key parameters
Field label displayed above the input.
Two-way binding to the input string.
Placeholder text shown when the field is empty.
Interaction state:
.normal, .disabled, or .readOnly.Inline error message shown below the field.
Maximum allowed character count.
When
true and maxTextLength is set, shows a live character counter.Appends a mandatory field indicator (defaults to
*) to the title.Usage
NoteFormView
A multi-line text editor for longer input such as notes and comments.Key parameters
Two-way binding to the note string.
Placeholder text shown when the editor is empty.
Minimum height of the text editor. Must be greater than 44 to take effect.
Maximum height before the editor becomes scrollable.
Maximum allowed character count.
Shows a live character counter when
true and maxTextLength is set.Usage
KeyValueFormView
A read-friendly key–value row commonly used to display record fields.TitleFormView
A section-title row used to group related form fields.RatingControlFormView
A star-rating input paired with a title label.SwitchView
SwitchView pairs a title label with a Toggle. It supports .normal, .disabled, and .readOnly states. In read-only state you can supply a custom stateLabel string that replaces the toggle.
Key parameters
Label for the toggle row.
Controls the toggle state.
Custom text to replace the toggle in read-only state.
Descriptive text rendered in the informationView below the row.
Interaction state:
.normal, .disabled, or .readOnly.Usage
Building a complete form
Validation is your responsibility — set
errorMessage and controlState in response to your own validation logic. The form view components display the state you provide; they do not auto-validate.