diff --git a/Sources/ACKategories/SwiftUIExtensions/ACKHostingController.swift b/Sources/ACKategories/SwiftUIExtensions/ACKHostingController.swift index ca17bc3..4c2be80 100644 --- a/Sources/ACKategories/SwiftUIExtensions/ACKHostingController.swift +++ b/Sources/ACKategories/SwiftUIExtensions/ACKHostingController.swift @@ -7,6 +7,7 @@ open class ACKHostingController: UIHostingController { /// Navigation bar is shown/hidden in viewWillAppear according to this flag public var hasNavigationBar = true + #if !os(tvOS) public override var preferredStatusBarStyle: UIStatusBarStyle { get { _preferredStatusBarStyle } set { @@ -16,6 +17,7 @@ open class ACKHostingController: UIHostingController { } private var _preferredStatusBarStyle: UIStatusBarStyle = .default + #endif // MARK: - Initializers