<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitView/insertArrangedSubview(_:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSplitView(im)insertArrangedSubview:atIndex:"
  },
  "title" : "insertArrangedSubview(_:at:)"
}
-->

# insertArrangedSubview(_:at:)

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

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

## Discussion

If the view is already an arranged view, calling this method moves the view to the specified index in the [`arrangedSubviews`](/documentation/AppKit/NSSplitView/arrangedSubviews) array. This change doesn’t affect the view’s index in the split view’s [`subviews`](/documentation/AppKit/NSView/subviews) array.

If the view isn’t a subview of the split view, calling this method adds it to the split view’s [`subviews`](/documentation/AppKit/NSView/subviews) array.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)