Deep dive into the UIColor family
summary
Explores the internal structure of UIColor in iOS, revealing it actually has around 18 private subclasses rather than being a simple container for color names/components. Examines how UIColor is implemented despite having only about 10 public initializers and 8 methods, inspects undocumented behaviors and specifications, and discusses implications for using dynamic colors and color spaces in UIKit.
AI-written summary · about
chapters (11)
- 0:00UIColor family overview
- 1:18UIColor subclasses
- 3:34UIColor design patterns
- 6:52Subclass roles and types
- 9:05Dynamic color subclasses
- 12:03UIColor in frameworks
- 13:31NSColor compatibility
- 14:35Custom UIColor subclassing
- 16:44UIColor properties
- 18:39Comparing UIColor
- 20:05Summary
related talks
28mAdvanced Colors in iOS
30mExtending UIColor to Support Custom Styling
28mThe Colorful Future of CSS
17mWhat's in a name? Exploring the origins of CSS color names
39mThe Chroma Zone Engineering Color on the Web
54mThe Computer Science Behind Colour
26mAnatomy of Dynamic Color
34mThe Evolution of CSS4 Color
