Adapting to Dark Mode

iOS supports a system-wide dark appearance called Dark Mode, and good iOS applications should respect the user’s preference. Let’s see how LootLogger looks currently in Dark Mode.

With the application still running, change the environment to Dark Mode by clicking the Adapting to Dark Mode button in Xcode’s debug toolbar to open the Environment Overrides menu (Figure 16.11). Turn on the Interface Style switch and select Dark.

Figure 16.11  Choosing the Dark Mode environment override

Choosing the Dark Mode environment override

Navigate through the app and notice that ...

Get iOS Programming: The Big Nerd Ranch Guide, 7th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.