---
title: "insertArrangedSubview(_:at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitview/insertarrangedsubview(_:at:)"
---

# insertArrangedSubview(_:at:)

Adds a view as an arranged split pane at the specified index.

## Declaration

```swift
func insertArrangedSubview(_ view: NSView, at index: Int)
```

## Discussion

Discussion If the view is already an arranged view, calling this method moves the view to the specified index in the arrangedSubviews array. This change doesn’t affect the view’s index in the split view’s subviews array. If the view isn’t a subview of the split view, calling this method adds it to the split view’s subviews array.

## See Also

### Arranging Subviews

- [arrangesAllSubviews](appkit/nssplitview/arrangesallsubviews.md)
- [arrangedSubviews](appkit/nssplitview/arrangedsubviews.md)
- [addArrangedSubview(_:)](appkit/nssplitview/addarrangedsubview(_:).md)
- [removeArrangedSubview(_:)](appkit/nssplitview/removearrangedsubview(_:).md)
