---
title: isModalInPopover
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/ismodalinpopover
---

# isModalInPopover

A Boolean value indicating whether the view controller should be presented modally by a popover.

## Declaration

```swift
var isModalInPopover: Bool { get set }
```

## Discussion

Discussion The default value of this property is false. Setting it to true causes an owning popover controller to disallow interactions outside this view controller while it is displayed. You can use this behavior to ensure that the popover is not dismissed by taps outside the popover controller.

## See Also

### Deprecated properties

- [shouldAutorotate](uikit/uiviewcontroller/shouldautorotate.md)
- [previewActionItems](uikit/uiviewcontroller/previewactionitems.md)
- [automaticallyAdjustsScrollViewInsets](uikit/uiviewcontroller/automaticallyadjustsscrollviewinsets.md)
- [bottomLayoutGuide](uikit/uiviewcontroller/bottomlayoutguide.md)
- [interfaceOrientation](uikit/uiviewcontroller/interfaceorientation.md)
- [searchDisplayController](uikit/uiviewcontroller/searchdisplaycontroller.md)
- [topLayoutGuide](uikit/uiviewcontroller/toplayoutguide.md)
