diff --git a/KisaniCal/Managers/ShortcutHandler.swift b/KisaniCal/Managers/ShortcutHandler.swift index 3abd7a0..c172a42 100644 --- a/KisaniCal/Managers/ShortcutHandler.swift +++ b/KisaniCal/Managers/ShortcutHandler.swift @@ -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 {