Instance Property


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


var performsActionsWhilePresentingModally: Bool { get }


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

func addKeyCommand(UIKeyCommand)

Associates the specified keyboard shortcut with the view controller.

func removeKeyCommand(UIKeyCommand)

Removes the key command from the view controller.