Skip to content

Commit

Permalink
🔧 Fix ACKHostingController availability
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed May 27, 2024
1 parent 8e3b640 commit 1dbb97a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import os.log
import SwiftUI

@available(iOS 13.0, tvOS 13.0, *)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class ACKHostingController<RootView: View>: UIHostingController<RootView> {
/// 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 {
Expand All @@ -16,6 +17,7 @@ open class ACKHostingController<RootView: View>: UIHostingController<RootView> {
}

private var _preferredStatusBarStyle: UIStatusBarStyle = .default
#endif

// MARK: - Initializers

Expand Down

0 comments on commit 1dbb97a

Please sign in to comment.