Instance Property

screenSize

The size of the viewport coordinate system, in logical pixels.

Declaration

var screenSize: MTLSize { get set }

Discussion

Metal ignores the depth component of this property.

The viewport coordinate system’s origin is always at (0,0) and this property determines its size.