Post

Replies

Boosts

Views

Activity

Reply to Migrating to PencilKit
Related to this: I have a drawing canvas as well, and have stored the history for all ink/eraser paths. I'd like to migrate that data into a PKDrawing. It seems that migrating ink can be done by creating new PKStrokes with the point/path/ink data I have. However, I don't see a way to migrate eraser paths. Is there a way to generate new eraser strokes programmatically for a PKDrawing?
Jul ’20
Reply to how XCode to calculate Memory
Many thanks for the #include <os/proc.h> workaround and information about os_proc_available_memory(). I'm running into the same issue where it won't compile without that extra line in the bridging header, though it compiles fine for me once I add that extra include. I've also submitted a Feedback with FB10994534. Thanks!
Aug ’22