Contents

init(frame:options:)

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

Declaration

init(frame: CGRect, options: [String : Any]? = nil)
init(frame: NSRect, options: [String : Any]? = nil)

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