TextEditor
Properties
Autocorrection
Whether the keyboard autocorrects and spell-checks the input.
Type: bool
Capitalization
When typing is automatically capitalized.
Type: Capitalization
ContentKind
What the editor holds, so the system can offer autofill.
Type: ContentKind
FontDesign
The system font design the text uses.
Type: FontDesign
FontSize
Base font size in points, scaled by Dynamic Type.
FontWeight
The weight the text is drawn at.
Type: Bindable<FontWeight>
GrammarChecking
Whether iOS checks grammar while typing, or null to follow the system default.
iOS 27 and later.
Type: bool?
KeyboardAccessory
A custom view above the raised keyboard.
Wins over
KeyboardToolbar; one view per field.
Type: View?
KeyboardLook
The color scheme of the raised keyboard.
Type: KeyboardLook
KeyboardToolbar
A bar above the raised keyboard with Done and optional previous/next arrows.
Type: KeyboardToolbar
MaxFontSize
The largest point size Dynamic Type may produce, or NaN for no upper bound.
Set this and
MinFontSizeto the same value for fixed-size text.
Type: double
MinFontSize
The smallest point size Dynamic Type may produce, or NaN for no lower bound.
Type: double
Text
The current text.
TextChanged
Invoked with the new value whenever the text changes.
Methods
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.