A Lightweight But Powerful Color Kit (Swift) – BCColor

  • Pick Colors From Image
  • Generate Monochrome Image
  • Support Hex Color Style
  • Lighten / Darken Any Color
  • Generate Two Different Styles of Gradient Color
Swift Color Extraction
Picking Colors from Images in Swift
iOS Color Picker from Image
Extracting Palette from Images in Swift
UIImage Color Analysis
Image Color Detection in Swift
Color Sampling in Swift
UIImage Color Extraction
Color Palette Generation in Swift
iOS Image Analysis for Color
Dominant Color Detection in Swift
Swift Image Processing for Color
Color Picker Tool in Swift
Extracting RGB Values from Images in Swift
Image Color Recognition in Swift
How to Get Colors from an Image in Swift
Swift Color Sampling Techniques
Color Picking from Photos in iOS
SwiftUI Color Picker from Image
Core Image Color Analysis in Swift



  • ARC only; iOS 8.0+​

Get it as:

1) source files
  1. Download the BCColor repository as a zip file or clone it
  2. Copy the BCColor files into your Xcode project
2) via Cocoa pods

BCColor is available on CocoaPods. Just add the following to your project Podfile:

pod 'BCColor'

If you want to read more about CocoaPods, have a look at this short tutorial.

Basic Usage

// Pick Colors From Image
let colors = image?.getColors()

// Generate Momochrome Image
let monochromeImage = image?.monochrome()

// Hex Color
UIColor.colorWithHex("#5d13e2", alpha: 1)

// Gradient Color
UIColor.gradientColor(CGPointMake(0.0, 0.0), endPoint: CGPointMake(1.0, 1.0), frame:frame, colors: [UIColor.redColor(), UIColor.blueColor()])

UIColor.radialGradientColor(frame, colors: [UIColor.blueColor(), UIColor.greenColor()])


If you like BCColor and use it, could you please:

  • star this repo
  • send me some feedback. Thanks!


iOS Color Picker from Image

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *