---
title: performsActionsWhilePresentingModally
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/performsactionswhilepresentingmodally
---

# performsActionsWhilePresentingModally

A Boolean value indicating whether the view controller performs menu-related actions.

## Declaration

```swift
var performsActionsWhilePresentingModally: Bool { get }
```

## Discussion

Discussion The default value of this property is true, which causes the view controller to handle actions passed along the responder chain by modally presented view controllers. If the app includes the UIViewControllerPerformsActionsWhilePresentingModally key in its Info.plist file, the default value matches the value of that key instead. A presenting view controller might not want to handle actions in one of its modally presented child view controllers. Overriding this property and returning false causes UIKit to ignore this view controller when searching for a target to handle actions.

## See Also

### Accessing the available key commands

- [addKeyCommand(_:)](uikit/uiviewcontroller/addkeycommand(_:).md)
- [removeKeyCommand(_:)](uikit/uiviewcontroller/removekeycommand(_:).md)
