M
M
MaxEpt2020-06-14 22:21:23
Objective-C
MaxEpt, 2020-06-14 22:21:23

How to ignore black theme in ios?

Hello !
We have a mobile application for ios. Naturally, it was not adapted to the black theme in any way, as a result, with the black theme turned on, we get the following result:
5ee678926062c062499398.jpeg

Is it possible to ignore the included black theme, and show everything as it is, without taking it into account?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter Bishop, 2020-06-15
@Peter_Bishop

In info.plist -

<key>UIUserInterfaceStyle</key>
<string>Light</string>

Or in a specific VC -
if #available(iOS 13.0, *) { overrideUserInterfaceStyle = .light }

Or for all screens -
if #available(iOS 13.0, *) {
    UIApplication.shared.windows.forEach { $0.overrideUserInterfaceStyle = .light }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question