Instance Property

autoResizeDrawable

A Boolean value that controls whether to resize the drawable as the view changes size.

Declaration

var autoResizeDrawable: Bool { get set }

Discussion

If the value is true, the currentDrawable object’s texture, depthStencilTexture object, and multisampleColorTexture object automatically resize as the view resizes. If the value is false, drawableSize does not change and neither does the size of these objects.

The default value is true.

See Also

Managing Your Render Target

var drawableSize: CGSize

The current size of drawable textures.

var framebufferOnly: Bool

A Boolean value that determines whether the drawable can be used for texture sampling or read/write operations.

var presentsWithTransaction: Bool

A Boolean value that determines whether the view presents its content using a Core Animation transaction.