Used on of my DTS I got the reply to file a bug … which I did :)
But I also found a workaround: While CoreGraphics was not working first, I found out that a PDF with all SwiftUI-Elements is produced if the CoreGraphics-part is wrapped in DispatchQueue.main.async
The result is flipped and mirrored but that shouldn't be a problem.
And yes, I included the workaround in the sample project which I attached to the bug report.
Post
Replies
Boosts
Views
Activity
I also tried CoreGraphics with drawing the layer in the CGContext … without any luck. Result was only a white PDF.
Also I tried to use printing but the result was same as dataWithPDF()
… Text and BezierPath had been drawn, Borders and Images not.