diff --git a/ios/Calendarr iOS.xcodeproj/project.xcworkspace/xcuserdata/scarriffle.xcuserdatad/UserInterfaceState.xcuserstate b/ios/Calendarr iOS.xcodeproj/project.xcworkspace/xcuserdata/scarriffle.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..5c63243 Binary files /dev/null and b/ios/Calendarr iOS.xcodeproj/project.xcworkspace/xcuserdata/scarriffle.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ios/Calendarr iOS.xcodeproj/xcuserdata/scarriffle.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/Calendarr iOS.xcodeproj/xcuserdata/scarriffle.xcuserdatad/xcschemes/xcschememanagement.plist index d6bd252..468f6f8 100644 --- a/ios/Calendarr iOS.xcodeproj/xcuserdata/scarriffle.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/ios/Calendarr iOS.xcodeproj/xcuserdata/scarriffle.xcuserdatad/xcschemes/xcschememanagement.plist @@ -17,12 +17,12 @@ CalendarrWatch.xcscheme_^#shared#^_ orderHint - 2 + 1 CalendarrWatchComplications.xcscheme_^#shared#^_ orderHint - 3 + 2 CalendarrWatchExtension.xcscheme_^#shared#^_ @@ -32,7 +32,7 @@ CalendarrWidgets.xcscheme_^#shared#^_ orderHint - 4 + 3 SuppressBuildableAutocreation diff --git a/ios/Calendarr iOS/Views/Calendar/CalendarHostView.swift b/ios/Calendarr iOS/Views/Calendar/CalendarHostView.swift index 6b11164..44d78ee 100644 --- a/ios/Calendarr iOS/Views/Calendar/CalendarHostView.swift +++ b/ios/Calendarr iOS/Views/Calendar/CalendarHostView.swift @@ -464,7 +464,9 @@ struct CalendarHostView: View { showNewBirthday: $showNewBirthday, api: api, reload: { await onNavigate() }, - reloadForce: { await reloadVisible(force: true) }) + // Same path as the manual reload button, which is the + // one that demonstrably shows a new Home Assistant event. + reloadForce: { await forceReload() }) } // MARK: – Loading logic @@ -525,13 +527,6 @@ struct CalendarHostView: View { await store.loadEvents(api: api, start: s, end: e) } - /// Re-fetch the visible range. With `force` it bypasses the cache so a just - /// created/edited event shows up immediately (the server is authoritative). - private func reloadVisible(force: Bool) async { - let (s, e) = store.rangeForCurrentView() - await store.loadEvents(api: api, start: s, end: e, force: force) - } - /// Called when cacheMonths setting changes – clear cache and re-prefetch. private func recache() async { store.invalidateCache()