Now works with UIViewControllerBasedStatusBarAppearance set to true