Swift snippet #1 — preferredStatusBarStyle

Monday, 28th November, 2016

If your controller is in a navigation stack then its preferredStatusBarStyle won’t get called, rather its navigation controller’s preferredStatusBarStyle gets called. This snippet makes sure that your current controller’s preferredStatusBarStyle gets called everytime so that you can configure it in the respective controller 🚀

If you are wondering about the inception of Swift-Snippets or want to checkout more such snippets then you can find them here 😊