---
title: "init(frame:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsgridview/init(frame:)"
---

# init(frame:)

Creates a newly allocated grid view object with the specified frame rectangle.

## Declaration

```swift
init(frame frameRect: NSRect)
```

## Parameters

- `frameRect`: The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it.

## See Also

### Creating a Grid View

- [init(numberOfColumns:rows:)](appkit/nsgridview/init(numberofcolumns:rows:).md)
- [init(views:)](appkit/nsgridview/init(views:).md)
- [init(coder:)](appkit/nsgridview/init(coder:).md)
