Why Your SwiftData + CloudKit Widget Shows No Data (And How to Fix It)
The Widget Was Empty JournalMind syncs journal data with SwiftData + CloudKit. When I added a home screen widget to show today’s mood and weekly graph, the widget was always blank — even though the app itself showed data just fine. The Cause: Separate Processes A WidgetKit extension runs in a separate process from the main app. Even if you create the same ModelContainer, CloudKit sync only happens in the main app’s process. ...