How to change tintColor of whole app? SwiftUI
问题 So, I am supporting three themes in my app, each with different tintColors. I'm using @EnvironmetObject to track changes. However, I can't use it on SceneDelegate.swift file, because the app crashes. Moreover, accentColor is not an option, as it doesn't change alert tintColor. How can I do it? Here's some code: SceneDelegate.swift file class SceneDelegate: UIResponder, UIWindowSceneDelegate { @EnvironmentObject var userData: UserData var window: UIWindow? func scene(_ scene: UIScene,