79492934

Date: 2025-03-07 16:42:07
Score: 0.5
Natty:
Report link

This did the trick for me:

  func updateUIView(_ uiView: PDFView, context: UIViewRepresentableContext<DocumentView>) {
    DispatchQueue.main.async {
      uiView.document = PDFDocument(data: self.document)
    }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jim Haungs