---
title: visibleViewController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationcontroller/visibleviewcontroller
---

# visibleViewController

The view controller associated with the currently visible view in the navigation interface.

## Declaration

```swift
var visibleViewController: UIViewController? { get }
```

## Discussion

Discussion The currently visible view can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally on top of the navigation controller itself.

## See Also

### Accessing items on the navigation stack

- [topViewController](uikit/uinavigationcontroller/topviewcontroller.md)
- [viewControllers](uikit/uinavigationcontroller/viewcontrollers.md)
- [setViewControllers(_:animated:)](uikit/uinavigationcontroller/setviewcontrollers(_:animated:).md)
