---
title: NSViewControllerPresentationAnimator
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nsviewcontrollerpresentationanimator
---

# NSViewControllerPresentationAnimator

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

## Declaration

```swift
protocol NSViewControllerPresentationAnimator : NSObjectProtocol
```

## Overview

Overview Implement this protocol only if you want to provide custom animations. You might find what you need in the 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:)](appkit/nsviewcontrollerpresentationanimator/animatepresentation(of:from:).md)
- [animateDismissal(of:from:)](appkit/nsviewcontrollerpresentationanimator/animatedismissal(of:from:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
