Fix tint colour in dark mode. (#1376)

This commit is contained in:
Doug
2023-07-21 11:05:40 +01:00
committed by GitHub
parent 3a3ff695fb
commit 3b0961f3c5
@@ -37,7 +37,9 @@ struct Application: App {
.statusBarHidden(shouldHideStatusBar)
.introspect(.window, on: .iOS(.v16)) { window in
// Workaround for SwiftUI not consistently applying the tint colour to Alerts/Confirmation Dialogs.
window.tintColor = UIColor(Color.compound.textActionPrimary)
window.tintColor = UIColor(named: "colorGray1400",
in: Bundle(identifier: "CompoundDesignTokens-CompoundDesignTokens-resources"),
compatibleWith: nil)
}
.task {
appCoordinator.start()