Ver código fonte

AppearanceManager: Propagate childForStatusBarStyle

In the case of VLCMovieViewController, we need to propagate it in order
to always set the preferred status bar style to .lightContent
Soomin Lee 6 anos atrás
pai
commit
ac159ad054
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      Sources/AppearanceManager.swift

+ 4 - 0
Sources/AppearanceManager.swift

@@ -49,4 +49,8 @@ extension UINavigationController {
     override open var preferredStatusBarStyle: UIStatusBarStyle {
         return PresentationTheme.current.colors.statusBarStyle
     }
+
+    override open var childForStatusBarStyle: UIViewController? {
+        return self.topViewController
+    }
 }