A Boolean value indicating whether the layer contains completely opaque content.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- Core Animation
The default value of this property is
false. If your app draws completely opaque content that fills the layer’s bounds, setting this property to
true lets the system optimize the rendering behavior for the layer. Specifically, when the layer creates the backing store for your drawing commands, Core Animation omits the alpha channel of that backing store. Doing so can improve the performance of compositing operations. If you set the value of this property to
true, you must fill the layer’s bounds with opaque content.
Setting this property affects only the backing store managed by Core Animation. If you assign an image with an alpha channel to the layer’s
contents property, that image retains its alpha channel regardless of the value of this property.