Contents

dismiss(_:)

Dismisses a presented view controller, using the same animator that presented it.

Declaration

func dismiss(_ viewController: NSViewController)

Parameters

  • viewController:

    The presented view controller that you are dismissing.

Discussion

In macOS, this is the universal way to dismiss a view controller, no matter how it was presented.

See Also

Presenting Another View Controller’s Content