Instance Method

initWithFrame:options:

Initializes and returns a newly allocated SceneKit view object with the specified frame rectangle and options.

Declaration

iOS, Mac Catalyst, tvOS
- (instancetype)initWithFrame:(CGRect)frame options:(NSDictionary<NSString *,id> *)options;
macOS
- (instancetype)initWithFrame:(NSRect)frame options:(NSDictionary<NSString *,id> *)options;

Parameters

frame

The frame rectangle for the view, measured in points and specified in the coordinate system of its superview.

options

Rendering options for the view. See SCNView.

Return Value

An initialized view object, or nil if the object couldn't be created.

See Also

Initializing a SceneKit View

SCNViewOption

Dictionary keys specifying initialization options, used when initializing a SceneKit view.