FlexColorPicker

screenshot of FlexColorPicker

Modern color picker library written in Swift 5 that can be easily extended and customized. It aims to provide great UX and performance with stable, quality code.

Overview

The Flex Color Picker is a hackable color picker library written in Swift 5. It supports both HSB and RGB color models, with controls for both radial and rectangular hue/saturation palettes. The library aims to provide great UX, performance, and flexibility through its customizable features. It is well-documented and consists of small classes with robust, easy-to-understand code. The Flex Color Picker can be easily integrated into projects using Swift Package Manager, Cocoapods, or direct installation.

Features

  • Supports HSB and RGB color models
  • Supports both radial and rectangular hue/saturation palettes
  • Provides a ready-to-use view controller for quick and simple implementation
  • Allows freedom to combine, leave out, or add your own picker components
  • Well-documented with comprehensive documentation
  • Highly customizable with storyboard support and design-time preview
  • Consists of small classes with robust, easy-to-understand code
  • Hackable: protocols for adding custom picker controls and open classes ready for subclassing

Swift Package Manager

  1. In Xcode 11 and above, click File → Swift Packages → Add Package Dependency...
  2. Choose the target to add FlexColorPicker to
  3. Enter the URL https://github.com/RastislavMirek/FlexColorPicker
  4. Set the version preference and confirm

Alternatively, if you are using Package.swift, add this dependency:

dependencies: [
    .package(url: "https://github.com/RastislavMirek/FlexColorPicker", from: "1.0.0")
]

Cocoapods

  1. Add the following to your podfile:
pod 'FlexColorPicker'
  1. Run pod install

Direct Installation

  1. Clone the color picker from the repository with the following command:
git clone https://github.com/RastislavMirek/FlexColorPicker.git

Alternatively, you can download the latest release as a ZIP from the releases tab.

  1. Open the cloned/downloaded project in Xcode and compile the target FlexColorPicker.
  2. The file FlexColorPicker.framework will be created in the Products directory.
  3. Open your project in Xcode, select the project file, select your application's target on the left side, go to the General tab, and add FlexColorPicker.framework under the Embedded Binaries section.

Summary

The Flex Color Picker is a customizable and hackable color picker library written in Swift. It supports HSB and RGB color models with controls for both radial and rectangular hue/saturation palettes. The library offers great UX and performance with well-documented code. It can be easily installed using Swift Package Manager, Cocoapods, or direct installation.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.