Procházet zdrojové kódy

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 před 6 roky
rodič
revize
ac159ad054
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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
+    }
 }