Contents

dismiss(animated:)

Dismisses the popover programmatically.

Declaration

func dismiss(animated: Bool)

Parameters

  • animated:

    Specify True to animate the dismissal of the popover or False to dismiss it immediately.

Discussion

You can use this method to dismiss the popover programmatically in response to taps inside the popover window. Taps outside of the popover’s contents automatically dismiss the popover.

See Also

Presenting and dismissing the popover