Instance Property


A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them.


var allowsNextDrawableTimeout: Bool { get set }


If true, the nextDrawable() method returns nil if it can’t provide a drawable object within one second. If false, the nextDrawable() method waits indefinitely for a drawable to become available.

The default value is true.

See Also

Obtaining a Metal Drawable

func nextDrawable() -> CAMetalDrawable?

Waits until a Metal drawable is available, and then returns it.

var maximumDrawableCount: Int

The number of Metal drawables in the resource pool managed by Core Animation.