mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user