Instance Property


The number of bits needed to represent one channel of data in one pixel.


var bitsPerComponent: UInt32


For ARGB8888, this would be 8. Expected values are 1, 2, 4, 5, 8, 10, 12, 16, or 32.

Beta Software

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