An open API service indexing awesome lists of open source software.

https://github.com/jaywcjlove/colorful

This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component.
https://github.com/jaywcjlove/colorful

apple color-picker colorful colorpicker jaywcjlove macos swift swift-package-manager swiftui swiftui-components

Last synced: 2 days ago
JSON representation

This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component.

Awesome Lists containing this project

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.

![Colorful for macOS](https://github.com/user-attachments/assets/89f6d76a-8e6d-47da-b8e9-96009110e57c)

✦ My macOS/iOS application ✦


FileSentinel
FocusCursor
Videoer
KeyClicker
DayBar
Iconed
RightMenu Master
Quick RSS
Quick RSS
Web Serve
Copybook Generator
DevTutor for SwiftUI
RegexMate
Time Passage
Iconize Folder
Textsound Saver
Create Custom Symbols
DevHub
Resume Revise
Palette Genius
Symbol Scribe

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.


DevTutor for SwiftUI AppStore

## 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.