Skip to content

Aayush9029/ColorWheel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Wheel

A customizable color picker component built with SwiftUI that provides an intuitive way to select colors in your iOS applications.

Features

  • 🎨 Intuitive color selection interface
  • 🌈 Full RGB color spectrum support
  • 📱 Native SwiftUI implementation
  • ⚡️ Real-time color preview
  • 🔄 Binding support for seamless integration

Installation

Xcode Package Dependency

https://github.com/Aayush9029/ColorWheel.git

Swift Package Manager

Add the following to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/Aayush9029/ColorWheel.git", branch: "main")
]

Usage

import SwiftUI
import ColorWheel

struct ColorPickerView: View {
    @State private var rgbColor: RGB = .init(r: 0, g: 0, b: 1)
    
    var body: some View {
        VStack {
            Rectangle()
                .fill(rgbColor.color)
            
            ColorWheelView(
                color: $rgbColor,
                brightness: .constant(1)
            )
        }
    }
}

About

SwiftUI Color Wheel Package

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages