Files
todos/App/Sources/Enumerations/InputFieldFocus.swift
T
javier 52376695a4 Task edition improvements (#9)
This PR contains the work done to improve upon the editing experience on the **Task list item and the **New task** views.

Reviewed-on: rock-n-code/todos-app#9
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2026-02-12 01:21:19 +00:00

18 lines
696 B
Swift

/// 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
}