animatePresentation(of:from:)
Called when the specified view controller is about to be presented.
Declaration
@MainActor func animatePresentation(of viewController: NSViewController, from fromViewController: NSViewController)Parameters
- viewController:
The view controller that is being presented in place of the one in the
fromViewControllerparameter. - fromViewController:
The view controller that is the parent of the one in the
viewControllerparameter.
Discussion
To add custom presentation animation, Implement it in this method.