<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStoryboard/init(name:bundle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStoryboard(cm)storyboardWithName:bundle:"
  },
  "title" : "init(name:bundle:)"
}
-->

# init(name:bundle:)

Creates a storyboard based on the named storyboard file in the specified bundle.

```
convenience init(name: NSStoryboard.Name, bundle storyboardBundleOrNil: Bundle?)
```

## Parameters

`name`

The name of the storyboard file, without the filename extension. This method raises an exception if this parameter’s value is `nil`.

`storyboardBundleOrNil`

The bundle used to resolve references to resources, typically images, in the archived controllers represented in the storyboard file. If you specify `nil`, AppKit uses the app’s main bundle.

## Return Value

A new storyboard object.

## Discussion

---

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)