---
title: "addRow(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsgridview/addrow(with:)"
---

# addRow(with:)

Adds an array of views to a new row.

## Declaration

```swift
func addRow(with views: [NSView]) -> NSGridRow
```

## Discussion

Discussion You can insert and remove rows and columns dynamically in a grid view. The grid is enlarged as needed to hold the specified views.

## See Also

### Adding, Removing, and Moving Rows

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