This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIColor { | |
/// Instantiate UIColor with support for high contrast mode | |
/// - Parameters: | |
/// - light: color to use when userInterfaceStyle is light and normal contrast | |
/// - dark: color to use when userInterfaceStyle is dark and normal contrast | |
/// - lightHC: color to use when userInterfaceStyle is light and high contrast | |
/// - darkHC: color to use when userInterfaceStyle is dark and high contrast | |
public convenience init( |