Can anyone tell me how to use Swift Data and Core Data with playground?
Swift Data and Core Data with playground
I am not sure if the Swift Playgrounds app has been updated to support SwiftData, but the following article shows how to use Core Data in a Swift Playgrounds app:
https://www.cephalopod.studio/blog/build-an-app-on-ipad-with-swift-playgrounds-and-core-data