Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the tint color of iOS system alerts?

I want to change the tint color of the iOS system alerts like the alert that ask for the photo library access or an AppStore review (not UIAlertController that you create and present programmatically) but I don't know if it is possible.

Using the window tint color like this don't work:

self.window?.tintColor = UIColor.red

Changing the tint color of the view of my view controller also don't work.

If it is possible how to do it?

like image 729
adrgrondin Avatar asked Oct 29 '25 18:10

adrgrondin


1 Answers

This isn't possible, since the system manages the creation of these alerts. You can only specify the text in the permission alerts using the key-val pair in the info.plist file. This is probably restricted for consistent UI.

like image 135
Bruce Avatar answered Nov 01 '25 07:11

Bruce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!