Theming SwiftUI App with Dark and Light mode Support
Compile with Xcode 11.5
MacOS and iOS support Light and dark mode. So it is important to make our Theme adaptive to dark and light mode. SwiftUI have inbuild support for Dark and light mode.
Setting Adaptive Colors:
For this we are going to use xcassets’s color set for following reasons: