From 6db9c50f528b0196198a0e0b3663f8f9b7806c36 Mon Sep 17 00:00:00 2001 From: Jakub Olejnik Date: Mon, 27 May 2024 17:16:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20ACKHostingController=20ava?= =?UTF-8?q?ilability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ACKategories/SwiftUIExtensions/ACKHostingController.swift | 2 ++ 1 file changed, 2 insertions(+) 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