Merge pull request #9 from RougeWare/feature/Downdate/RectangleTools/2.10.0 Downdated RectangleTools from 3.0.0 to 2.10.1
Merge pull request #9 from RougeWare/feature/Downdate/RectangleTools/2.10.0
Downdated RectangleTools from 3.0.0 to 2.10.1
A simple Swift package - all it does is draw rectangles of solid colors as NSImages and UIImages.
NSImage
UIImage
You can simply use .swatch on a native image:
.swatch
import AppKit import ColorSwatches NSImage.swatch(color: .systemPurple)
Or .swatch on a native color:
import UIKit import ColorSwatches UIColor.systemPurple.swatch()
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Swift Color Swatches
A simple Swift package - all it does is draw rectangles of solid colors as
NSImage
s andUIImage
s.You can simply use
.swatch
on a native image:Or
.swatch
on a native color: