init(viewAnimations:)
Returns an NSViewAnimation object initialized with the supplied information.
Declaration
init(viewAnimations: [[NSViewAnimation.Key : Any]])Parameters
- viewAnimations:
An array of Nsdictionary objects. Each dictionary specifies a view or window to animate and the effect to apply.
viewAnimationscan benil, but you must later set the required array of dictionaries with Viewanimations if you want to use the capabilities of theNSViewAnimationclass. SeeView Animation Dictionary Keysfor a description of valid keys and values for dictionaries inviewAnimations.
Return Value
The created NSViewAnimation object or nil if there was a problem initializing the object.