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

# sourceController

The starting/containing view controller or window controller for the storyboard segue.

```
var sourceController: Any { get }
```

## Discussion

In your storyboard segue subclass, you can read this property to get the starting/containing view controller or window controller for the segue.

---

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)