A simple Swift package - all it does is draw rectangles of solid colors as NSImage
s and UIImage
s.
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()
link |
Stars: 2 |
Last commit: 2 years ago |
RectangleTools found a way to solve the same problem without a major version change, so this downgraded to the newer RectangleTools 2.10.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics