NEW: Learn to build the incredible iOS 15 Weather app today! >>

How to sync data written in Codable between users' devices

Forums > SwiftUI

I am currently using Codable to read and write data but I want to sync that data between users' devices. I cannot find any good guide of how to integrate it with CloudKit and I don't want to use core data as I would have to do a lot of changes in the app for it.



I don't think you have many options apart from converting Codable to and from CKRecord and syncing those with iCloud.


Hacking with Swift is sponsored by Sentry

SPONSORED With Sentry’s error and performance monitoring for iOS, you see mobile vitals that actually matter, can solve any latency issues quickly, and learn how each release is performing over time.

Learn More

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.