Instance Property

device

The device object the view uses to create its Metal objects.

Declaration

var device: MTLDevice? { get set }

Discussion

The default value is nil. You must explicitly set the device object.

See Also

Configuring the Metal Device

var preferredDevice: MTLDevice?

The device object that the system recommends using for this view.