Post

Replies

Boosts

Views

Activity

Reply to Alerts and Action Sheets not using SwiftUI accent color
Based on maxtomczyk's fix the following seems to works fine with "new" App (no SceneDelegate.swift) (with universal AccentColor in assets ofc) // root app file @main struct MyApp: App { init(){ // override apple's buggy alerts tintColor UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = UIColor(named: "AccentColor") } var body: some Scene { WindowGroup { // content view... } } }
Feb ’22