yannickl/DynamicColor
Yet another extension to manipulate colors easily in Swift and SwiftUI observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4111
- days_rel: n/a
- days_push: 1007
- n_releases_24m: 0
Adoption not part of the score
3081 stars · 146 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
DynamicColor is a Swift library that extends UIColor, NSColor, and SwiftUI Color with convenient methods for creating and manipulating colors, including hex string parsing, lighten/darken adjustments, and gradient generation. It provides a platform-independent DynamicColor typealias that works across iOS, macOS, tvOS, and watchOS.
Use cases
- create colors from hex strings in swift
- lighten or darken a uicolor programmatically
- generate color gradients in swiftui
- convert colors to hex strings on ios
- manipulate nscolor values on macos
- build color palettes for an ios app
When to choose
- you need easy color manipulation (lighten, darken, mix, gradients) in Swift or SwiftUI
- you want cross-platform color code shared between iOS and macOS
- you frequently parse or output hex color strings
When to avoid
- you only need basic Color initialization already provided by SwiftUI
- your project is not written in Swift
- you need advanced color science features like wide-gamut or perceptual color spaces
Facets
library · maturity stable
ui-components developer-tools mobile-development frontend cross-platform swift swiftui uicolor nscolor color-manipulation hex-colors gradients cocoapods swift-package-manager ios macos mobile desktop
2 sources
- readme: https://github.com/yannickl/DynamicColor · fetched 2026-08-28 · 96f1fb281ef8
- homepage: http://cocoadocs.org/docsets/DynamicColor · fetched 2026-08-29 · 2b0a64a62d6d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| yannickl/DynamicColor | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="yannickl/DynamicColor")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem