0

Does anyone know how to access to the height of the status bar? I am trying to animate the status bar to the top of the screen.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
NilsBerni
  • 83
  • 2
  • 13
  • why would you do that? anyway height (read-only) of status bar is `UIApplication.shared.statusBarFrame.height` – mugx Dec 17 '17 at 00:24
  • Possible duplicate of https://stackoverflow.com/questions/12991935/how-to-programmatically-get-ios-status-bar-height (there are Swift answers). – rmaddy Dec 17 '17 at 00:56
  • _"trying to animate the status bar to the top of the screen"_ Isn't the status bar already at the top? – ryantxr Dec 17 '17 at 02:04
  • Possible duplicate of [How to programmatically get iOS status bar height](https://stackoverflow.com/questions/12991935/how-to-programmatically-get-ios-status-bar-height) – Tzar Dec 17 '17 at 02:16

0 Answers0