yeahdongcn/UIColor-Hex-Swift
Convenience methods for creating color using RGBA hex string. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4464
- days_rel: n/a
- days_push: 1015
- n_releases_24m: 0
Adoption not part of the score
1243 stars · 142 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Swift extension library that adds convenience initializers and methods to UIColor for creating colors from RGBA hex strings, including shorthand and ARGB-to-RGBA conversion. It supports Swift Package Manager, CocoaPods, and Carthage.
Use cases
- create uicolor from hex string in swift
- convert hex color with alpha to uicolor
- parse 3-character shorthand hex colors
- convert android argb colors to ios rgba
- get hex string from a uicolor
When to choose
- you need hex string to UIColor conversion on iOS or macOS
- you want support for shorthand hex and alpha channels
- you need ARGB (Android-style) color conversion in Swift
When to avoid
- you work outside Apple platforms
- you need color manipulation beyond hex parsing (blending, spaces)
- you use SwiftUI Color exclusively without UIColor interop
Facets
library · maturity maintenance
ui-components serialization mobile-development frontend developer-tools uicolor hex-color swift color-conversion apple-platforms ios macos
1 source
- readme: https://github.com/yeahdongcn/UIColor-Hex-Swift · fetched 2026-08-28 · 8404fbb42a36
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| yeahdongcn/UIColor-Hex-Swift | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="yeahdongcn/UIColor-Hex-Swift")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem