How to remove dark mode from Comet iOS screens?

Hi guys,

I wanted to override the system dark mode and just use white background across comet screens.
Understandably, I followed this:

but the comet UI screens still have the black background in iOS 13 and above.
How can we easily opt out of dark mode without changing the color of every view?


Using the first approach mentioned in the link you’ll be able to switch to light mode. This mode will be applicable to whole app.

1 Like

Thanks, @pushpsen.airekar, I’ve been using the first approach since the beginning. All but the comet screens were in light mode.
I tried the second approach inside the CometChatUnified.swift setup function and it worked(hope this helps others):

if #available(iOS 13.0, *) {
                self.overrideUserInterfaceStyle = .light
            } else {
                // Fallback on earlier versions
1 Like