Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.16 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.16 KB

Swift 5 swift package manager 5.3 is supported Requires macOS 10.15+, OS 13+, tvOS 13+, watchOS 6+

Swift Color Swatches

A simple Swift package - all it does is draw rectangles of solid colors as NSImages and UIImages.

You can simply use .swatch on a native image:

import AppKit
import ColorSwatches

NSImage.swatch(color: .systemPurple)

Or .swatch on a native color:

import UIKit
import ColorSwatches

UIColor.systemPurple.swatch()