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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software