Instance Method

initWithFrame:device:

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

Declaration

- (instancetype)initWithFrame:(CGRect)frameRect device:(id<MTLDevice>)device;

Parameters

frameRect

The frame rectangle for the view.

device

The Metal device to be used by the view to create Metal objects.

Return Value

An initialized view object.

See Also

Initialization

- initWithCoder:

Initializes a view from data in a given unarchiver.