A simple Swift package - all it does is draw rectangles of solid colors as
You can simply use
.swatch on a native image:
import AppKit import ColorSwatches NSImage.swatch(color: .systemPurple)
.swatch on a native color:
import UIKit import ColorSwatches UIColor.systemPurple.swatch()
|Last commit: 1 week ago|
This requirement is mostly done to make sure that the ecosystem remains harmonious; you can always import the latest versions of all packages into your project.
This means we also require its platform versions and Swift tools version, bumping this repo to 2.0.0.
Also took this opportunity to give this package a proper readme! 🥳