---
title: destinationController
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsstoryboardsegue/destinationcontroller
---

# destinationController

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

## Declaration

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

## Discussion

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:) method of the NSSeguePerforming protocol, to let you pass configuration data to the ending/contained controller.

## See Also

### Inspecting a Storyboard Segue

- [sourceController](appkit/nsstoryboardsegue/sourcecontroller.md)
- [identifier](appkit/nsstoryboardsegue/identifier-swift.property.md)
- [NSStoryboardSegue.Identifier](appkit/nsstoryboardsegue/identifier-swift.typealias.md)
