Enumeration

NSViewControllerTransitionOptions

Animation options for view transitions in a view controller.

Declaration

typedef enum NSViewControllerTransitionOptions : NSUInteger {
    ...
} NSViewControllerTransitionOptions;

Overview

The up and down slide animation options are disjoint and you cannot combine them.

Likewise, the left and right slide animation options are disjoint and you cannot combine them.

User interaction with transitioning views is prevented for all animation options except the NSViewControllerTransitionAllowUserInteraction option.

Topics

Constants

NSViewControllerTransitionNone

A transition with no animation (the default). Specifying another animation option from this enumeration overrides this option.

NSViewControllerTransitionCrossfade

A transition animation that fades the new view in and simultaneously fades the old view out. You can combine this animation option with any of the “slide” options in this enumeration.

NSViewControllerTransitionSlideUp

A transition animation that slides the old view up while the new view comes into view from the bottom. In other words, both views slide up.

NSViewControllerTransitionSlideDown

A transition animation that slides the old view down while the new view slides into view from the top. In other words, both views slide down.

NSViewControllerTransitionSlideLeft

A transition animation that slides the old view to the left while the new view slides into view from the right. In other words, both views slide to the left.

NSViewControllerTransitionSlideRight

A transition animation that slides the old view to the right while the new view slides into view from the left. In other words, both views slide to the right.

NSViewControllerTransitionSlideForward

A transition animation that reflects the user interface layout direction (userInterfaceLayoutDirection) in a “forward” manner, as follows:

NSViewControllerTransitionSlideBackward

A transition animation that reflects the user interface layout direction (userInterfaceLayoutDirection) in a “backward” manner, as follows

NSViewControllerTransitionAllowUserInteraction

A transition animation that allows user interaction during the transition.