Tag: swiftui
-
Extracting RGBA Components from Color in SwiftUI, UIKit and AppKit
If you’re saving user colours, tweaking animations, or just trying to debug what you see on screen, Color doesn’t give you direct access to its components. In this post, we’ll fix that with simple extensions for UIColor, NSColor, and Color to reliably extract RGBA values across platforms. It’s a lightweight solution that works on all…