The PaperMarkup class in PaperKit allows for an asynchronous function called .draw(in:, frame:) that we should call as:
await paperMarkup.draw(in: context.cgContext, frame: rect)
In PencilKit the PKDrawing that we can get from a PKCanvasView allows for .image(from: ,scale:) to be called synchronously. This allows me to easily render into a PKDrawing as a UIImage or a SwiftUI Image to, for example, render a thumbnail on screen.
When trying to incorporate PaperKit in my project I noticed that I often need the drawing to be rendered synchronously (like I would with PKDrawing) but I can't find the way to accomplish this within PaperKit's current functionality.
Is there any way to call .draw(...) in PaperKit synchronously?
Feedback: FB20993683