What kind of database can I use?

could you please recommend sever choices of local database I can use or the ways to store data in app playground, like can I use realm or sqlite?

Replies

IMO the best way to manage persistence in your app is with SwiftData.

If you want to use some other database, read the fine print before you start coding.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi @eskimo, as SwiftData is only available with iOS 17, and Playgrounds on iOS 16, is it an issue if features using SwiftData are only available for a specific version ?

To bypass this issue, we could use a third-part library as requested by yuccc.

Because if the playground is tested on iOS 16, some features could be missing.