Reload/refresh a scene after receive remote notification swiftUI
问题 I have this problem. I'm receiving a notification from CloudKit using application:didReceiveRemoteNotification in AppDelegate. I'm able to receive the recordId, fetch it, and save it successfully. The problem is, the scene doesn't refresh. final class UserData: ObservableObject { @Published var items: [Item] = [] func saveFetchedItem(recordId: CKRecord.ID, reason: CKQueryNotification.Reason) { fetchAndSaveRemoteDataFromCloudKit(recordId: recordId, reason: reason, userData: self) } } in