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.1
A SwiftUi Color Extension Package
⭐️ 0
🕓 3 hours ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/lukepistrol/LPColorUI.git", from: "1.1.1")

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: 0
Last commit: 3 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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