Protocol

NSViewControllerPresentationAnimator

The view controller presentation animator protocol lets you define animations to play when transitioning between two view controllers.

Overview

Implement this protocol only if you want to provide custom animations. You might find what you need in the NSViewControllerTransitionOptions enumeration, which provides many predefined animations.

A class that adopts this protocol is responsible for both presenting and dismissing a view controller.

Symbols

Animating Presentation and Dismissal of View Controllers

func animatePresentation(of: NSViewController, from: NSViewController)
Required.

Called when the specified view controller is about to be presented.

func animateDismissal(of: NSViewController, from: NSViewController)
Required.

Called when a previously-presented view controller is about to be dismissed.

Relationships

Inherits From