-1

iPhone device theme is Dark. So my app theme getting some changes because of this. Can i prevent this dark mode in my app? if yes How?

Mohit Tomar
  • 5,173
  • 2
  • 33
  • 40
  • Yes, you can opt-out of it: https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13?rq=1 – Frank Rupprecht Sep 26 '19 at 07:42
  • 2
    Possible duplicate of [Is it possible to opt-out of dark mode on iOS 13?](https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13) – Kurt Revis Sep 27 '19 at 06:55

1 Answers1

1

Add this code to your info.plist

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

The game is on Default color.

In Light theme Default color is White.

On the other hand, In dark theme Default color is Black.

Now we can make our app's appearance as device's theme.

Mohit Tomar
  • 5,173
  • 2
  • 33
  • 40