Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
ac159ad054
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
+    }
 }