8000 GitHub - jaywcjlove/Colorful: This is a SwiftUI color picker component library for macOS, designed to replace the default ColorPicker component.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

License

Notifications You must be signed in to change notification settings

jaywcjlove/Colorful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, which offers a different user experience and a distinct style. The inspiration for this component comes from react-colorful, which I developed for a community member free of charge.

Colorful for macOS

✦ My macOS/iOS application ✦

Vidwall Mousio Hint Mousio Musicer Audioer 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, a cheat sheet app designed to help developers quickly build excellent applications using SwiftUI.

DevTutor for SwiftUI AppStore

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0