I've found the solution. On the NSPersistentCloudKitContainer we have to simply call persistentContainer.record(for: object.objectID) where object is NSManagedObject
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: