From 4ce9e2556205c3f4a7eec4765ef32eb94cea4b1a Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 12 Feb 2026 01:20:17 +0100 Subject: [PATCH] Defined the InputFieldFocus enumeration in the app target. --- App/Sources/Enumerations/InputFieldFocus.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 App/Sources/Enumerations/InputFieldFocus.swift diff --git a/App/Sources/Enumerations/InputFieldFocus.swift b/App/Sources/Enumerations/InputFieldFocus.swift new file mode 100644 index 0000000..72abfb2 --- /dev/null +++ b/App/Sources/Enumerations/InputFieldFocus.swift @@ -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 +}