Rename 'Today' shortcut to 'Tasks', move to first position
Co-Authored-By: Kutesir <tqwyy79vzn@privaterelay.appleid.com>
This commit is contained in:
@@ -8,6 +8,7 @@ enum QuickAction: String {
|
|||||||
case today = "com.kutesir.kisanical.today"
|
case today = "com.kutesir.kisanical.today"
|
||||||
case calendar = "com.kutesir.kisanical.calendar"
|
case calendar = "com.kutesir.kisanical.calendar"
|
||||||
case workout = "com.kutesir.kisanical.workout"
|
case workout = "com.kutesir.kisanical.workout"
|
||||||
|
case next3 = "com.kutesir.kisanical.next3days"
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Singleton observable handler
|
// MARK: - Singleton observable handler
|
||||||
@@ -36,24 +37,30 @@ extension ShortcutHandler {
|
|||||||
let showWorkout = ud.object(forKey: "showWorkoutTab") as? Bool ?? true
|
let showWorkout = ud.object(forKey: "showWorkoutTab") as? Bool ?? true
|
||||||
|
|
||||||
var items: [UIApplicationShortcutItem] = [
|
var items: [UIApplicationShortcutItem] = [
|
||||||
|
UIApplicationShortcutItem(
|
||||||
|
type: QuickAction.today.rawValue,
|
||||||
|
localizedTitle: "Tasks",
|
||||||
|
localizedSubtitle: "Open your task list",
|
||||||
|
icon: UIApplicationShortcutIcon(systemImageName: "checkmark.circle.fill")
|
||||||
|
),
|
||||||
UIApplicationShortcutItem(
|
UIApplicationShortcutItem(
|
||||||
type: QuickAction.addTask.rawValue,
|
type: QuickAction.addTask.rawValue,
|
||||||
localizedTitle: "Add Task",
|
localizedTitle: "Add Task",
|
||||||
localizedSubtitle: "Create a new reminder",
|
localizedSubtitle: "Create a new reminder",
|
||||||
icon: UIApplicationShortcutIcon(systemImageName: "plus.circle.fill")
|
icon: UIApplicationShortcutIcon(systemImageName: "plus.circle.fill")
|
||||||
),
|
),
|
||||||
UIApplicationShortcutItem(
|
|
||||||
type: QuickAction.today.rawValue,
|
|
||||||
localizedTitle: "Today",
|
|
||||||
localizedSubtitle: "Tasks & agenda",
|
|
||||||
icon: UIApplicationShortcutIcon(systemImageName: "checkmark.circle")
|
|
||||||
),
|
|
||||||
UIApplicationShortcutItem(
|
UIApplicationShortcutItem(
|
||||||
type: QuickAction.calendar.rawValue,
|
type: QuickAction.calendar.rawValue,
|
||||||
localizedTitle: "Calendar",
|
localizedTitle: "Calendar",
|
||||||
localizedSubtitle: "Month view",
|
localizedSubtitle: "Month view",
|
||||||
icon: UIApplicationShortcutIcon(systemImageName: "calendar")
|
icon: UIApplicationShortcutIcon(systemImageName: "calendar")
|
||||||
),
|
),
|
||||||
|
UIApplicationShortcutItem(
|
||||||
|
type: QuickAction.next3.rawValue,
|
||||||
|
localizedTitle: "Next 3 Days",
|
||||||
|
localizedSubtitle: "Upcoming tasks",
|
||||||
|
icon: UIApplicationShortcutIcon(systemImageName: "calendar.badge.clock")
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
if showWorkout {
|
if showWorkout {
|
||||||
|
|||||||
Reference in New Issue
Block a user