Rename 'Today' shortcut to 'Tasks', move to first position

Co-Authored-By: Kutesir <tqwyy79vzn@privaterelay.appleid.com>
This commit is contained in:
Robin Kutesa
2026-06-01 03:54:58 +03:00
parent 0c48ca888b
commit 0483bc04ea

View File

@@ -8,6 +8,7 @@ enum QuickAction: String {
case today = "com.kutesir.kisanical.today"
case calendar = "com.kutesir.kisanical.calendar"
case workout = "com.kutesir.kisanical.workout"
case next3 = "com.kutesir.kisanical.next3days"
}
// MARK: - Singleton observable handler
@@ -36,24 +37,30 @@ extension ShortcutHandler {
let showWorkout = ud.object(forKey: "showWorkoutTab") as? Bool ?? true
var items: [UIApplicationShortcutItem] = [
UIApplicationShortcutItem(
type: QuickAction.today.rawValue,
localizedTitle: "Tasks",
localizedSubtitle: "Open your task list",
icon: UIApplicationShortcutIcon(systemImageName: "checkmark.circle.fill")
),
UIApplicationShortcutItem(
type: QuickAction.addTask.rawValue,
localizedTitle: "Add Task",
localizedSubtitle: "Create a new reminder",
icon: UIApplicationShortcutIcon(systemImageName: "plus.circle.fill")
),
UIApplicationShortcutItem(
type: QuickAction.today.rawValue,
localizedTitle: "Today",
localizedSubtitle: "Tasks & agenda",
icon: UIApplicationShortcutIcon(systemImageName: "checkmark.circle")
),
UIApplicationShortcutItem(
type: QuickAction.calendar.rawValue,
localizedTitle: "Calendar",
localizedSubtitle: "Month view",
icon: UIApplicationShortcutIcon(systemImageName: "calendar")
),
UIApplicationShortcutItem(
type: QuickAction.next3.rawValue,
localizedTitle: "Next 3 Days",
localizedSubtitle: "Upcoming tasks",
icon: UIApplicationShortcutIcon(systemImageName: "calendar.badge.clock")
),
]
if showWorkout {