UIView.drawHierarchy fails under iOS 17

119 views Asked by At

I have a feature in my app where I export a bunch of images into a PDF. For this, I use

UIGraphicsBeginPDFPageWithInfo

and

myView.drawHierarchy(in: myView.frame, afterScreenUpdates: true)

This worked perfectly fine for several years. And now it has broken with the latest update. Any hints on what could be causing this issue?

1

There are 1 answers

0
Koushik Ravikumar On BEST ANSWER

This is now fixed from iOS 17.1 onwards.