iOS · macOS · watchOS · tvOS


A pure Swift library that allows you to easily convert SwiftUI Colors to Hex String and vice versa.

There is also support for other types.
Currently all supported types are UIColor and NSColor.
Depending on the target version, you have the same functions as SwifUI’s Color.

This project is created and maintained by Novem.


Installation

Swift Package Manager

You can use The Swift Package Manager (SPM) to install NVMRegion by adding the following description to your Package.swift file:

import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/NVMNovem/NVMColor", from: "1.0.0"),
    ]
)

Then run swift build.

You can also install using SPM in your Xcode project by going to
“Project->NameOfYourProject->Swift Packages” and placing “https://github.com/NVMNovem/NVMColor” in the
search field. Then select the option that is most suited for your needs.

Usage Guide

Code

GitHub

View Github