Swiftpack.co - lukepistrol/LPColorUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by lukepistrol.
lukepistrol/LPColorUI 1.1.4
A SwiftUi Color Extension Package
⭐️ 2
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/lukepistrol/LPColorUI.git", from: "1.1.4")

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

GitHub

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

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