Skip to content

SPM Swift 5.1: Convert CSS color names and RGB hex values to UIColor. UIColor from hex 3, 4, 6, and 8 characters in length with or without # prefix. UIColor to hex. UIColor extension that creates immutable UIColor instances from hexadecimal and CSS color name strings (e.g. ff0, #f00, ff0000, ff0000ff, Pink, aZure, CLEAR, nil).

Notifications You must be signed in to change notification settings

NormanBitSolace/BlackLabsColor

Repository files navigation

BlackLabsColor

Convert UIColor to hex and from hex 3, 4, 6, and 8 characters in length with or without # prefix. Create UIColors from CSS color names.

Installation

Swift Package Manager

If you are using Xcode 11 or later:

  1. Click File
  2. Swift Packages
  3. Add Package Dependency...
  4. Enter: https://github.com/NormanBitSolace/BlackLabsColor

Usage

image

About

SPM Swift 5.1: Convert CSS color names and RGB hex values to UIColor. UIColor from hex 3, 4, 6, and 8 characters in length with or without # prefix. UIColor to hex. UIColor extension that creates immutable UIColor instances from hexadecimal and CSS color name strings (e.g. ff0, #f00, ff0000, ff0000ff, Pink, aZure, CLEAR, nil).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages