QLPreviewController & dark mode

I am updating my app to display correctly in dark mode and one of the things it does is provide the ability to view a log file. The file is a CSV file and I use QLPreviewController to display it. However, I notice that in dark mode the QLPreviewController is still white background and black text. I would think it would change to black background with white text like the rest of the views. I attempted to set the background color myself in a subclass of QLPreviewContrller but was unsuccessul. Am I misunderstanding the point of dark mode? Is there a way to make it work as I am describing?

I actually facing the same issue at the moment. Have you come across and sort of solution?

Sorry it has taken so long for me to reply. I didn't see that anyone had responded. No I do not have a solution and it still does not honor dark mode.

QLPreviewController & dark mode
 
 
Q