I tried toggle the dark mode, I know Swift 4 or 5 I use the code:
overrideUserInterfaceStyle = .dark
But in SwiftUI, seem nothing way I can do that...how can I toggle the dark mode rest of app? I tried do many method and search everywhere but couldn't find any luck. Even I tried use didSet but no luck, it give me the error.
Any suggestion?