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) |
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.
link |
Stars: 50 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics