Files
todos/App/Sources/Enumerations/InputFieldFocus.swift
T

18 lines
716 B
Swift
Raw Normal View History

2026-02-12 01:21:19 +00:00
/// 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.
2026-02-12 10:48:11 +00:00
enum InputFieldFocus: Hashable, Sendable {
2026-02-12 01:21:19 +00:00
/// 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
}