- Initialize iOS project with 6-tab navigation structure - Configure custom Light/Dark themes and AppColors - Define SwiftData models for Tasks, Tags, Goals, and TrackingRecords - Setup relationships (Super/Sub tags) and cascade delete rules - Implement Observable TrackingEngine for real-time timer updates
18 lines
409 B
Swift
18 lines
409 B
Swift
import Foundation
|
|
|
|
enum ThemeMode: String, CaseIterable, Identifiable {
|
|
case system
|
|
case light
|
|
case dark
|
|
|
|
var id: String { rawValue }
|
|
|
|
var localizedName: String {
|
|
switch self {
|
|
case .system: return String(localized: "theme.system")
|
|
case .light: return String(localized: "theme.light")
|
|
case .dark: return String(localized: "theme.dark")
|
|
}
|
|
}
|
|
}
|