28

I’m trying to figure out how to turn on the new dark mode on the Xcode simulator. As far as I know it turns on by itself on real devices when it’s dark. Is there a way to trigger this on the simulator?

1

5 Answers 5

43

There are two ways to activate the dark mode in Xcode 11. Both require you manual steps and are not automatic depending on the time.

1. Environment Overrides

The preferred one is to use the Environment Overrides inside Xcode. When running the App on the simulator in Xcode appears a button in the debugger controls next to 'Debug Memory Graph' and 'Simulate Location'. There you will find a menu for enabling dark mode, as well as choose text size and other accessibility settings.

Dark Mode Settings in Xcode11

2. Simulator Settings

Alternatively you can go inside the Settings App on the simulator:

Settings > Developer > Dark Appearance

Sign up to request clarification or add additional context in comments.

2 Comments

Environment Overrides seems to be the best way. Then you can keep your app in the foreground. Unless you run the Settings app and your app side-by-side.
Not suitable for debug dark mode on launch screen
24

Here I got it. Open Setting -> Developer -> Dark Appearance

enter image description here

1 Comment

Isn't this exactly what the other answer said?
17

On the Simulator>Features>Toggle Appearances changed the state for me:enter image description here

there is also the Shift+Command+A option that also works.

1 Comment

In iOS 16 Beta 1 there is no option to change dark/light mode here.
1

It’s also possible to activate dark mode on your iOS simulator by using the following command:

xcrun simctl ui booted appearance dark 

To change to light mode, run this:

xcrun simctl ui booted appearance light 

Comments

0

You can do it in two ways:

1. 

enter image description here

2.Go to AppDelegate.m or AppDelegate.h .You can find the options in the bottom side. 

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.