0

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?

ronak patel
  • 400
  • 5
  • 17
Pankaj Mundra
  • 1,401
  • 9
  • 25

1 Answers1

0

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.

GeneCode
  • 7,545
  • 8
  • 50
  • 85