How to ensure WidgetKit view shows correct results from @FetchRequest?
问题 I have an app that uses Core Data with CloudKit. Changes are synced between devices. The main target has Background Modes capability with checked Remote notifications. Main target and widget target both have the same App Group, and both have iCloud capability with Services set to CloudKit and same container in Containers checked. My goal is to display actual Core Data entries in SwiftUI WidgetKit view. My widget target file: import WidgetKit import SwiftUI import CoreData // MARK: For Core