---
title: activePresentationController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/activepresentationcontroller
---

# activePresentationController

The presentation controller that’s managing the view controller.

## Declaration

```swift
var activePresentationController: UIPresentationController? { get }
```

## Discussion

Discussion If the original presentation controller hasn’t adapted, the value of this property is presentationController. If the original presentation controller has adapted to a different presentation controller, the value of this property is the adaptive presentation controller. If the view controller hasn’t presented yet, this property returns nil.

## See Also

### Adding a custom transition or presentation

- [transitioningDelegate](uikit/uiviewcontroller/transitioningdelegate.md)
- [transitionCoordinator](uikit/uiviewcontroller/transitioncoordinator.md)
- [targetViewController(forAction:sender:)](uikit/uiviewcontroller/targetviewcontroller(foraction:sender:).md)
- [presentationController](uikit/uiviewcontroller/presentationcontroller.md)
- [popoverPresentationController](uikit/uiviewcontroller/popoverpresentationcontroller.md)
- [sheetPresentationController](uikit/uiviewcontroller/sheetpresentationcontroller.md)
- [restoresFocusAfterTransition](uikit/uiviewcontroller/restoresfocusaftertransition.md)
- [Customizing and resizing sheets in UIKit](uikit/customizing-and-resizing-sheets-in-uikit.md)
