Defined the InputFieldFocus enumeration in the app target.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
/// Identifies which input field should receive keyboard focus in todo task editing interfaces.
|
||||||
|
///
|
||||||
|
/// This enumeration is designed to work with focus state property wrapper, enabling programmatic
|
||||||
|
/// control of keyboard focus between different text input fields when editing todo tasks.
|
||||||
|
enum InputFieldFocus {
|
||||||
|
/// The note text field has keyboard focus.
|
||||||
|
///
|
||||||
|
/// This case represents the optional multi-line note field where users can
|
||||||
|
/// add additional details about a todo task.
|
||||||
|
case note
|
||||||
|
|
||||||
|
/// The title text field has keyboard focus.
|
||||||
|
///
|
||||||
|
/// This case represents the primary title field where users enter the
|
||||||
|
/// title of a todo task.
|
||||||
|
case title
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user