Swiftpack.co - richieshilton/UIColour as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by richieshilton.
richieshilton/UIColour 1.0.2
UIColor/Color for English speakers
⭐️ 50
🕓 1 year ago
.package(url: "https://github.com/richieshilton/UIColour.git", from: "1.0.2")

UIColour

platforms Swift Package Manager compatible

This is a Swift version of UIColor written in English. Now compatible with SwiftUI and Color.

Usage

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)

Requirements

  • Xcode
  • Swift

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.

GitHub

link
Stars: 50
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics