Working with the asset catalog for Dark Mode
Since the ability to add colors to the asset catalog became available back in Xcode 9, there is now even more reason to take full advantage of one of Xcode's prized assets.
In this section, we'll look at how we can use the asset catalog not only to create our custom colors but also to create our own adaptive colors and images, allowing us to harness the power of Xcode when developing dynamic appearance applications.
Using custom adaptive colors
Sticking with our current project, head on over to the file inspector, and highlight the Assets.xcassets
folder. With the following layout visible, click on the + button highlighted in the following screenshot and select New Color Set from the list of options:
Figure 2.19 – Creating a color set
Add in another three color sets and name them the following:
brandLabel
brandSecondaryLabel
brandTertiaryLabel
Highlight brandLabel
...