I want to style the look of my AlertController in the app using appearance. It works well for the background and the buttons, but no matter what I try, the labels for title and message always stay black.
Here is what I am doing:
UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = .orange
UIVisualEffectView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).effect = UIBlurEffect(style: .dark)
UILabel.appearance(whenContainedInInstancesOf: [UIAlertController.self]).textColor = .white
This is the result I get:
Any ideas, how I can set the color of title and message, or why changing the appearance of UILabel does not work in this case?