I have an App in which I am using NSPersistentCloudKitContainer to store user's drawings, and to have them in sync across multiple devices.
To store the drawings, I am using a "Binary Data" attribute in my Core Data entity. In this attribute I am saving the data representation of the drawing by using this API https://developer.apple.com/documentation/pencilkit/pkdrawing/3281878-datarepresentation
I have observed that for some drawings this data representation consumes a huge amount of data, and that generates synchronisation problems among devices.
Is there a better approach to persist PKDrawings without this problem?
To store the drawings, I am using a "Binary Data" attribute in my Core Data entity. In this attribute I am saving the data representation of the drawing by using this API https://developer.apple.com/documentation/pencilkit/pkdrawing/3281878-datarepresentation
I have observed that for some drawings this data representation consumes a huge amount of data, and that generates synchronisation problems among devices.
Is there a better approach to persist PKDrawings without this problem?