jaywcjlove/colorful
Colorful
Usage
import Colorful
struct ContentView: View {
@State var color: Color? = Color.blue
@State var colorClear: Color? = .clear
var body: some View {
Colorful("Color", selection: $color, arrowEdge: .bottom)
.frame(width: 210)
Colorful(selection: $colorClear, arrowEdge: .top)
}
}Use the showsAlpha modifier to control the visibility of the alpha (opacity) slider in the picker panel.
import Colorful
struct ContentView: View {
@State var color: Color? = .clear
var body: some View {
ColorfulPicker(selection: $color)
.showsAlpha(false)
}
}License
Licensed under the MIT License.
Package Metadata
Repository: jaywcjlove/colorful
Default branch: main
README: README.md