---
title: presentingViewController
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsviewcontroller/presentingviewcontroller
---

# presentingViewController

The view controller that presented the view controller or that presented its farthest ancestor view controller.

## Declaration

```swift
unowned(unsafe) var presentingViewController: NSViewController? { get }
```

## Discussion

Discussion The presenting view controller is the one that is ultimately responsible for presenting the view controller whose presentingViewController property you are accessing.

## See Also

### Getting Related View Controllers

- [parent](appkit/nsviewcontroller/parent.md)
- [presentedViewControllers](appkit/nsviewcontroller/presentedviewcontrollers.md)
