How to override system appearance in SwiftUI
An under-utilized feature I always appreciate when I see it is the ability to select an appearance for an app independent of the system appearance. If you search how to set the color scheme of a view in SwiftUI, you’ll probably come across preferredColorScheme which looks great but doesn’t work how we’d like for this feature. Instead, we are going to make use of overrideUserInterfaceStyle We’ll start off by creating our AppearanceOptions enum and make it conform to String and CaseIterable for use in our form later on....