Instance Property

lumens

The total visible intensity of the light source, in lumens.

Declaration

var lumens: Float { get set }

Discussion

The default intensity is 1000 lumens.

See Also

Managing Light Color and Intensity

var color: CGColor?

The color of the light source.

func setColorByTemperature(Float)

Sets the light’s color based on a black-body temperature.

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