PDFKit dark mode interface style for pdf document

311 Views Asked by At

Is there a way to adapt to pdf document with the dark mode of containing view? Below doesn't change any aspect of PDF document.

let pdfView = PDFView()        
pdfView.overrideUserInterfaceStyle = .dark
guard let documentUrl = Bundle.main.url(forResource: "mPilot", withExtension: "pdf") else { return }         
guard let document = PDFDocument(url: documentUrl) else { return }
            
pdfView.document = document
0

There are 0 best solutions below