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.
First, import the Package Module:
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"))
Add to your Project Packages: