Returns the grayscale components of the color.
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
On return, the grayscale component of the color object. On applications linked for iOS 10 or later, the grayscale component is specified in an extended range gray color space and can have any value. Values between
1are inside the sRGB color gamut. On earlier versions of iOS, the specified value is always between
On return, the opacity component of the color object, specified as a value between
true if the color could be converted,
If the color is in a compatible color space, the color is converted into grayscale format and returned to your application. If the color is not in a compatible color space, the parameters are unchanged.