Initializer

init(frame:device:)

Initializes a view with the specified frame rectangle and Metal device.

Declaration

init(frame frameRect: CGRect, device: MTLDevice?)

Parameters

frameRect

The frame rectangle for the view.

device

The Metal device object to use.

Return Value

An initialized view object.

See Also

Creating a View

init(coder: NSCoder)

Initializes a view from data in a given unarchiver.