Enable dark mode for pdfKit

Hello,

I have one requirement in my project to enable dark mode for pdf view.

I am giving a brief description to understand the actual problem.

In my project i have one feature to read book . The book is in pdf format. I have to integrate one feature like dark mode , means, on a action of a button click , i have to change the pdf background color from white to black and pdf text color from black to white.

Bt i can't find any solution in pdf kit predefined functions, and also ".backGroundColor" is not able to this change.

Please provide the the solution regarding this issue.

Thanks & Regards

Maybe this could provide you a quick fix ? I did not test it.

h ttps://blog.thefuntasty.com/smart-invert-simple-way-to-implement-dark-mode-in-your-ios-app-fccb1a4af439

Thank you Claude31 for your rply.

i am sorry to say that the provided link is not able to solve my problem. Can you plese try once at your end. Its not working for me.

If any another solution or modifiacation needed please let me know.

Thank you again

Enable dark mode for pdfKit
 
 
Q