<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSplitViewController/splitViewItem(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSplitViewController(im)splitViewItemForViewController:"
  },
  "title" : "splitViewItem(for:)"
}
-->

# splitViewItem(for:)

Returns the corresponding split view item for the specified child view controller of the split view controller.

```
func splitViewItem(for viewController: NSViewController) -> NSSplitViewItem?
```

## Parameters

`viewController`

The child view controller with the corresponding split view item you want.

## Return Value

The corresponding split view item, or `nil` if `viewController` isn’t a child of the split view controller.

---

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)