---
title: "init(frame:options:)"
framework: scenekit
role: symbol
role_heading: Initializer
path: "scenekit/scnview/init(frame:options:)"
---

# init(frame:options:)

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

## Declaration

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

```swift
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 doc://com.apple.scenekit/documentation/SceneKit/SCNView.

## Return Value

Return Value An initialized view object, or nil if the object couldn’t be created.

## See Also

### Initializing a SceneKit View

- [SCNView.Option](scenekit/scnview/option.md)
