Dark mode in SwiftUI Preview doesn't have a dark background with Xcode 11.4
Setting \.colorScheme
in the environment is deprecated, so instead use the .preferedColorScheme
modifier. For example,
ContentView()
.preferredColorScheme(.dark)
Setting \.colorScheme
in the environment is deprecated, so instead use the .preferedColorScheme
modifier. For example,
ContentView()
.preferredColorScheme(.dark)