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

# destinationController

The ending/contained view controller or window controller for the storyboard segue.

```
var destinationController: Any { get }
```

## Discussion

In your storyboard segue subclass, you can read this property to get the ending/contained view controller or window controller for the segue. This property is essential if you override the [`prepare(for:sender:)`](/documentation/AppKit/NSSeguePerforming/prepare(for:sender:)) method of the [`NSSeguePerforming`](/documentation/AppKit/NSSeguePerforming) protocol, to let you pass configuration data to the ending/contained 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)