Is there any reference material for how the underlying data is /can be encrypted when using SwiftData?

I work on an App where I've built a local store using SQLCipher to perform local encyption.

I really like the elegant syntax that SwiftData introduced in WWDC 2023, and am curious if there is any documentation that could offer guidance regarding how data is saved to disk.

  • How is data encrypted?
  • Can it be encrypted with a passphrase provided by the App?
  • Can data be prevented from being synchronized over to users iCloud / other backup accounts?

I was hoping that Model Configuration would contain a few options for this, but couldn't find any.

Avanish

4 Likes