---
title: presentingViewController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipresentationcontroller/presentingviewcontroller
---

# presentingViewController

The view controller that is the starting point for the presentation.

## Declaration

```swift
var presentingViewController: UIViewController { get }
```

## Discussion

Discussion The object in this property could be the root view controller of the window, a parent view controller that is marked as defining the current context, or the last view controller that was presented onscreen. This view controller may or may not be the same one whose present(_:animated:completion:) method was called to initiate the presentation process. It may also not be the view controller used to initialize your presentation controller.

## See Also

### Getting the presentation objects

- [presentedViewController](uikit/uipresentationcontroller/presentedviewcontroller.md)
- [containerView](uikit/uipresentationcontroller/containerview.md)
- [presentedView](uikit/uipresentationcontroller/presentedview.md)
