Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default Time Interval for setNavigationBarHidden(Bool, Bool) Animation

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.

like image 585
NoodleOfDeath Avatar asked May 02 '26 12:05

NoodleOfDeath


1 Answers

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.

like image 102
Ozgur Vatansever Avatar answered May 05 '26 08:05

Ozgur Vatansever