Skip to content

Instantly share code, notes, and snippets.

@diederikh
Created December 5, 2016 10:55
Show Gist options
  • Save diederikh/9ad97c4cd05c42f46bf174246ef00365 to your computer and use it in GitHub Desktop.
Save diederikh/9ad97c4cd05c42f46bf174246ef00365 to your computer and use it in GitHub Desktop.
preferredStatusBarStyle extension for nav controller
extension UINavigationController {
open override var preferredStatusBarStyle: UIStatusBarStyle {
return topViewController?.preferredStatusBarStyle ?? .default
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment