<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewController/nibBundle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSViewController(py)nibBundle"
  },
  "title" : "nibBundle"
}
-->

# nibBundle

The nib bundle to be loaded to instantiate the receiver’s primary view.

```
var nibBundle: Bundle? { get }
```

## Discussion

This property’s value is the bundle you provide to the `nibBundleOrNil` parameter in the [`init(nibName:bundle:)`](/documentation/AppKit/NSViewController/init(nibName:bundle:)) method.

---

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)