Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component.
License
jaywcjlove/Colorful
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component. In addition, I’ve created another component library,ColorSelector, which offers a different user experience and a distinct style. The inspiration for this component comes fromreact-colorful, which I developed for a community member free of charge.
Welcome to downloadDevTutor, a cheat sheet app designed to help developers quickly build excellent applications using SwiftUI.
import ColorfulstructContentView:View{@Statevarcolor:Color?=Color.blue@StatevarcolorClear:Color?=.clearvarbody:someView{Colorful("Color", selection: $color, arrowEdge:.bottom).frame(width:210)Colorful(selection: $colorClear, arrowEdge:.top)}}
Use theshowsAlpha modifier to control the visibility of the alpha (opacity) slider in the picker panel.
import ColorfulstructContentView:View{@Statevarcolor:Color?=.clearvarbody:someView{ColorfulPicker(selection: $color).showsAlpha(false)}}
Licensed under the MIT License.
About
This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
