From bd2be24f4151b7dd9f7e1af8ddeca387a05fbdd7 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:36:01 -0400 Subject: [PATCH] Update AppDefaults.swift --- Clocker/Overall App/AppDefaults.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Clocker/Overall App/AppDefaults.swift b/Clocker/Overall App/AppDefaults.swift index 8d9a4e0..b7075c4 100644 --- a/Clocker/Overall App/AppDefaults.swift +++ b/Clocker/Overall App/AppDefaults.swift @@ -20,6 +20,8 @@ class AppDefaults { } private class func defaultsDictionary() -> [String: Any] { + // Local var for calendars to silence "empty collection requires an explicit type" + let calendars: [String] = [] return [CLThemeKey: 0, CLDisplayFutureSliderKey: 0, CLSelectedTimeZoneFormatKey: 0, // 12-hour format @@ -36,7 +38,7 @@ class AppDefaults { CLShowAllDayEventsInUpcomingView: 1, CLShowMeetingInMenubar: 0, CLTruncateTextLength: 30, - CLSelectedCalendars: [], + CLSelectedCalendars: calendars, CLAppDisplayOptions: 0, CLMenubarCompactMode: 1] }