# Colorful **Repository Path**: mirrors_jaywcjlove/Colorful ## Basic Information - **Project Name**: Colorful - **Description**: This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-21 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Colorful === 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](https://github.com/jaywcjlove/ColorSelector), which offers a different user experience and a distinct style. The inspiration for this component comes from [react-colorful](https://github.com/omgovich/react-colorful), which I developed for a community member free of charge.  ✦ My macOS/iOS application ✦
Welcome to download [DevTutor](https://apps.apple.com/app/devtutor/id6471227008), a cheat sheet app designed to help developers quickly build excellent applications using SwiftUI. ## Usage ```swift 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. ```swift 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.