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