Accessing the system .Destructive red button color

Viewed 1288

How do you access the system red color used for the destructive alert button style?

For instance, the default style blue color used for buttons can be accessed in Swift by let systemBlueColor = view.tintColor, which corresponds to UIColor(red: 0, green: 122, blue: 255, alpha: 1.0).

The destructive red color seems to be given by UIColor(red: 255, green: 59, blue: 48, alpha: 1.0) but is there any way to access it in a similar way to the default view.tintColor method?

I have read that RGB interpretations can vary on devices / operating systems, so I would like to access the device / operating system independent version of the color.

1 Answers
Related