Framework
KLAdaptiveSurface
KLAdaptiveSurface turns a sampled image color into a readable surface without applying a fixed light or dark overlay. The policy can leave an already clean color untouched, normalize only colors that cross a configured threshold, and choose a foreground using the resulting background rather than the device appearance. The package is deliberately independent from wondays. It accepts a CGColor, applies a configurable policy in one pass, and returns the background, foreground, contrast direction, and whether normalization was needed.
Guides
API Reference
Architecture
Migration
KLAdaptiveSurface · Swift Package documentation