Instance Property


The size, in pixels, of textures for rendering layer content.


var drawableSize: CGSize { get set }


By default, a layer creates textures sized to match its content—that is, this property’s value is the layer’s bounds size multiplied by its contentsScale factor.

See Also

Configuring the Layer's Drawable Objects

var pixelFormat: MTLPixelFormat

The pixel format of the layer’s textures.

var colorspace: CGColorSpace?

The color space of the rendered content.

var framebufferOnly: Bool

A Boolean value that determines whether the layer’s textures are used only for rendering.