- July 26, 2025
- Mins Read
Lightweight framework for generating visually aesthetic color-schemes in Swift
What can Lorikeet do for you
github “valdirunars/Lorikeet”
In you Podfile
pod ‘Lorikeet’
Copy the ./Lorikeet
folder 😁🗂
let red: UIColor = .red
let label = UILabel()
label.backgroundColor = red
// Assign a maximum contrasting color as foreground color
label.textColor = red.lkt.complimentaryColor
// Visual color difference
let distance: Float = red.distance(to: .blue, algorithm: .cie2000)
// Generate color scheme
red.lkt.generateColorScheme(numberOfColors: 40) { colors in
print(colors)
}
Lorikeet’s Algorithm
enum has two cases for advanced usage:
.advancedCIE94(l: Float, c: Float, h: Float, k1: Float, k2: Float)
.advancedCIE2000(l: Float, c: Float, h: Float)
Example:
let l: Float = 0.8
let c: Float = 0.9
let h: Float = 1.0
red.lkt.generateColorScheme(numberOfColors: 40,
using: .advancedCIE2000(l: l, c: c, h: h)) { colors in
print(colors)
}
let range = HSVRange(hueRange: (0, 1),
saturationRange: (0.5, 0.5),
brightnessRange: (0.95, 0.95))
color.lkt.generateColorScheme(numberOfColors: 15,
withRange: range,
using: .cie2000) {
colors in
}
let label = UILabel(frame: frame)
self.view.backgroundColor = UIColor(hue: 180/360.0,
saturation: 0.5,
brightness: 0.6,
alpha: 1)
label.backgroundColor = self.view
.backgroundColor!
.lkt
.generateRandomMatchingColor()
label.textColor = label.backgroundColor!
.lkt
.complimentaryColor
let color: UIColor = UIColor(red: 245/255.0, green: 110/255.0, blue: 100/255.0, alpha: 1)
color.lkt.generateColorScheme(numberOfColors: 10)
NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...
An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...