Declaration

Parameters

menu

The menu that was closed.

event

The event that caused the menu to close, if there was one. If an event did not cause the menu to close, this value is nil.

Discussion

This method is called only if the contextual menu had been opened and the view has previously received the willOpenMenu(_:with:) method. When the view receives didCloseMenu(_:with:), it should reset its visual state, if necessary. For example, if a table view selected a row in response to a contextual menu being displayed, this method could deselect the row.