---
title: "insertRow(at:with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsgridview/insertrow(at:with:)"
---

# insertRow(at:with:)

Inserts the array of view objects into the grid view at the index.

## Declaration

```swift
func insertRow(at index: Int, with views: [NSView]) -> NSGridRow
```

## See Also

### Adding, Removing, and Moving Rows

- [addRow(with:)](appkit/nsgridview/addrow(with:).md)
- [removeRow(at:)](appkit/nsgridview/removerow(at:).md)
- [moveRow(at:to:)](appkit/nsgridview/moverow(at:to:).md)
