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
#if os(macOS) | |
typealias PlatformColor = NSColor | |
#else | |
typealias PlatformColor = UIColor | |
#endif | |
/// This was primarilly used in a SwiftUI app which is why you see the extension is on Color but theoretically, the code inside the function below could be used in just UIKit as the underlying code has nothing to do with SwiftUI. | |
extension Color { | |
func isLightColor() -> Bool? { |