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.
Asked
Active
Viewed 615 times
3

rolling_codes
- 15,174
- 22
- 76
- 112
1 Answers
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
-
Perfect! The exact answer I was looking for – rolling_codes Apr 25 '16 at 18:54
-
so what is the exact time? – Melany Jan 14 '17 at 15:02
-
@Melany it is 0.2 seconds. – Ozgur Vatansever Jan 14 '17 at 15:37
-
@ozgur thanks a lot, but where have you found this information? – Melany Jan 14 '17 at 15:42
-
just printed that out `print(UINavigationControllerHideShowBarDuration)` – Ozgur Vatansever Jan 15 '17 at 18:33