- July 30, 2025
- Mins Read
A lightweight but powerful color kit (Swift)
Pick Colors From Image
Generate Monochrome Image
Support Hex Color Style
Lighten / Darken Any Color
Generate Two Different Styles of Gradient Color
ARC only; iOS 8.0+
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.
// 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()])
PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...
Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...
1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...