Readme
This is a Swift version of UIColor written in English. Now compatible with SwiftUI and Color.
let myColour: UIColour = .red view.backgroundColor = UIColour.blue
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.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
UIColour
This is a Swift version of UIColor written in English. Now compatible with SwiftUI and Color.
Usage
let myColour: UIColour = .red view.backgroundColor = UIColour.bluelet myColour: Colour = .red ... sometime later ... Text("Hello, colour!") .foregroundColor(myColour)Requirements
For Xcode 10.1 and below, use this package just like you would with Xcode 10.2 and above.
Uninstallation
Please don’t actually use this.