<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewControllerPresentationAnimator",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSViewControllerPresentationAnimator"
  },
  "title" : "NSViewControllerPresentationAnimator"
}
-->

# NSViewControllerPresentationAnimator

A set of methods that let you define animations to play when transitioning between two view controllers.

```
protocol NSViewControllerPresentationAnimator : NSObjectProtocol
```

## Overview

Implement this protocol only if you want to provide custom animations. You might find what you need in the [`NSViewController.TransitionOptions`](/documentation/AppKit/NSViewController/TransitionOptions) enumeration, which provides many predefined animations.

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

## Topics

### Animating Presentation and Dismissal of View Controllers

[`animatePresentation(of:from:)`](/documentation/AppKit/NSViewControllerPresentationAnimator/animatePresentation(of:from:))

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

[`animateDismissal(of:from:)`](/documentation/AppKit/NSViewControllerPresentationAnimator/animateDismissal(of:from:))

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)