Animate Transition in objective c

626 Views Asked by At

How to give animation to NSView? The function which is used for animation in ios is as below.

[UIView animateWithDuration: duration
                                      delay:0.0
                                    options:curve
                                 animations:updateClocks
                                 completion:nil];

I want to use the same function in mac os for animation. So how can I use this function with given parameters for mac os x?

1

There are 1 best solutions below

1
On

That is because animateWithDuration is only available for iOS and tVOS. You can see it in Apple documentation:

https://developer.apple.com/documentation/uikit/uiview/1622515-animatewithduration

enter image description here

You need to find the equivalent one in MacOSX.