lukepistrol / LPColorUI

A SwiftUi Color Extension Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LPColorUI

Twitter: @lukeeep_

This Swift Package packs all of the standard UIColor constants into a Color extension to use in SwiftUI. It also adds an initializer for HEX Colors.

Usage

First, import the Package Module:

import LPColorUI

Then use as you would with the built in color properties:

Text("Hello, World!")
	.foregroundColor(.darkText)

To use the Hex Initializer:

Text("Hello, World!")
	.foregroundColor(.init(hex: "FAFAFA"))

Installation

Add to your Project Packages:

https://github.com/lukepistrol/LPColorUI.git

About

A SwiftUi Color Extension Package


Languages

Language:Swift 100.0%