Dismisses a modal view and returns the success or failure of the action.
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
true if the modal view is successfully dismissed; otherwise,
false. By default, this method returns
Implement this method on an element or containing view that can be revealed modally or in a hierarchy. When a VoiceOver user performs a dismiss action, this method dismisses the view. For example, you might implement this method for a popover in order to give users a deliberate dismiss action to perform that closes the popover.