UIColor
-
Create a
UIColor
from aMaterialColor
let view = UIView() view.backgroundColor = UIColor(material: .blue200)
-
Create a
UIColor
from aMaterialColor
let view = UIView() view.backgroundColor = .material(.blue200)
-
The color as a
MaterialColor
, or nil if the color cannot be represented as aMaterialColor