map()
Returns a new UIColor derived from this color.
map(fn: (source: UIColor) => UIColor): UIColor;
Notes
- The specified function is called lazily when output() is called, and cached until invalidated (e.g. after changing the theme).
Parameters
- fn — A function that receives this UIColor and returns a new UIColor.
Return value
A new UIColor instance with lazy evaluation.
Related
class UIColor
A class that represents a single color value.
