How to Save and Load PKDrawing with SwiftData in PencilKit (SwiftUI)
I want to use SwiftData to store my PKDrawing data. I’m not interested in using CoreData or UserDefaults. I need the app to save the current drawing state when it is closed and to display the saved drawing when it is reopened.