preferredColorScheme mode not taken into account
nylki opened this issue · 1 comments
nylki commented
If a bottomSheet is wrapped around .preferredColorScheme
, it does not take the modifier into account and shows the system-selected color scheme.
gshaw commented
I'd spent a bit of time looking at this but I'm not familiar enough with SwiftUI to submit a fix.
I was able to copy the source of the package into my project and then hack BottomSheetViewController to explicitly call overrideUserInterfaceStyle = .dark
after viewDidLoad()
is called.
This isn't a solution but maybe it will help somebody that knows more on a proper fix.