From Dev.to
Adding an in-app CloudKit sync toggle to your CoreData App
Adding iCloud sync to your CoreData is fairly easy. Either check the right boxes when you create a project or do some work to transition your app from a local CoreData App to a CoreData App with Cloud...
