Using iCloud Integration for Core Data with SwiftUI App Protocol

In Using Core Data with SwiftUI App Protocol the integration of Core Data was explained.

Is it also possible to implement the iCloud Integration for Core Data with SwiftUI App Protocol Apps?

Accepted Answer
You can use this approach https://developer.apple.com/forums/thread/650876
and then use the NSPersistentCloudKitContainer instead of NSPersistentContainer.
A good explanation of how to integrate the NSPersistentCloudKitContainer properly is here:
andrewcbancroft.com/blog/ios-development/data-persistence/getting-started-with-nspersistentcloudkitcontainer/

Using iCloud Integration for Core Data with SwiftUI App Protocol
 
 
Q