Use asset catalog for tint colour. Update Sentry. (#705)

Sentry had a bug where the colour was being ignored due to access of the main screen.
This commit is contained in:
Doug
2023-03-16 12:32:14 +00:00
committed by GitHub
parent 6486e887c0
commit 701581f4a1
6 changed files with 152 additions and 8 deletions
@@ -22,10 +22,6 @@ struct Application: App {
private let applicationCoordinator: AppCoordinatorProtocol
init() {
// Set the tint colour app-wide. Using UIView ensures that alerts, confirmation dialogs
// and Xcode previews all take on the tint colour, similar to defining it in an asset catalog.
UIView.appearance().tintColor = .element.accent
if Tests.isRunningUITests {
applicationCoordinator = UITestsAppCoordinator()
} else {