Storing a PKDrawing as a persisted struct?

Hello,

I’d like to store a PKDrawing from PencilKit within a user object, but I’m getting the error: “Generic struct ‘Persisted’ requires that ‘PKDrawing’ conform to ‘_Persistable’.” Is it possible to store a PKDrawing, or is it not a supported type?

@Persisted var sketch: PKDrawing

Thank you,
Jack

Figured out that I can save its data instead :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.