3

What is the default time interval for Swift animations like the setNavigationBarHidden(Bool, animated: Bool) and setToolbarHidden(Bool, animated: Bool) methods of the UINavigationController class? I would like to know so that my animations match the same duration.

rolling_codes
  • 15,174
  • 22
  • 76
  • 112

1 Answers1

5

From Apple docs:

UINavigationControllerHideShowBarDuration

A global constant that specifies a preferred duration when animating the navigation bar. This variable specifies the duration when animating the navigation bar.

It is 0.2 seconds.

Community
  • 1
  • 1
Ozgur Vatansever
  • 49,246
  • 17
  • 84
  • 119