Initializes a material property with a color value.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
A descriptive name for the material property. For details, see the
The semantic meaning for the material property’s value. For details, see the
The color value for the material property.
A material property with a color value uses a uniform color for all pixels rendered using the material. This option is useful for base colors of solid-colored objects, and also for material semantics where variation across the surface of the material is unnecessary. To vary colors across a surface, use a texture image instead.
Creating a Material Property
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software