# yeahdongcn/UIColor-Hex-Swift

Convenience methods for creating color using RGBA hex string.

Repository: https://github.com/yeahdongcn/UIColor-Hex-Swift
Canonical: https://ross.abutalabs.com/products/uicolor-hex-swift
Language: Swift
License: MIT
License Family: permissive
Last push: 2023-11-22T08:30:10+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4464, "days_push": 1015, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1243, forks 142 (observed 2026-08-28T04:04:06.559948+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: ui-components, serialization
- domain: mobile-development, frontend, developer-tools
- platform: -
- tags: uicolor, hex-color, swift, color-conversion, apple-platforms, ios, macos

## Member repositories
- yeahdongcn/UIColor-Hex-Swift (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.559948+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:22.456944+00:00, confidence not recorded.
  - readme: https://github.com/yeahdongcn/UIColor-Hex-Swift (fetched 2026-08-28T04:04:06.559948+00:00, sha 8404fbb42a36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
