This is a Swift version of UIColor written in English. Now compatible with SwiftUI and Color.
Here's an example |
---|
Use just like UIColor ... |
let myColour: UIColour = .red view.backgroundColor = UIColour.blue |
Or in SwiftUI... |
let myColour: Colour = .red ... sometime later ... Text("Hello, colour!") .foregroundColor(myColour) |
- Xcode
- Swift
For Xcode 10.1 and below, use this package just like you would with Xcode 10.2 and above.
Please don't actually use this.