iOS has a range of system colors that automatically adapt to vibrancy and changes in accessibility setting like Increase Contrast and Reduce Transparency. The system colors look great individually and in combination, on both light and dark backgrounds, and in both like and dark modes.
Apple also has semantically defined system colors for use in background areas, foreground content, and native controls like labels, seperators, and fill. They automatically adapt to both like and dark UI modes.
extension UIColor {
static let darkBlue = UIColor(red: 10/255, green: 132/255, blue: 255/255, alpha: 1)
}
But also give the color a name around what it represents
public extension UIColor {
static var downloadColor: UIColor {
return .shawSkyBlue
}
static var uploadColor: UIColor {
return .shawTertiaryYellow
}
}