wwdc2022-10089 and various issues

Hi,

I encounter various problems with inserting PKDrawing into a PDFAnnotation :

First : After "page.addAnnotation(myCustomAnnotation)", saved document seems corrupted (affected pages are displayed with a "X" watermark covering the whole page), Second : The only way to extract PKDrawing from the annotation is unarchiveTopLevelObjectWithData: which is deprecated, Final : I'm not able to re-read PKDrawings to restore PKCanvasView undoManager.

Does anyone have an idea on a correct way to do this?

Thank you in advance and happy new year everyone!

wwdc2022-10089 and various issues
 
 
Q