[Experimental Feature] Show Status Bar (#241)

* Adds @Feature for Show Status Bar
* Shows the Status Bar if the @Feature is enabled
* Forces light content on Status Bar
This commit is contained in:
Chris Rittenhouse 2023-04-28 15:26:57 -04:00 committed by GitHub
parent 77b26210ab
commit 05e94902b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -180,6 +180,14 @@ class GameViewController: DeltaCore.GameViewController
return .all
}
override var prefersStatusBarHidden: Bool {
return !ExperimentalFeatures.shared.showStatusBar.isEnabled
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
required init()
{
super.init()

View File

@ -17,6 +17,10 @@ struct ExperimentalFeatures: FeatureContainer
options: VariableFastForwardOptions())
var variableFastForward
@Feature(name: "Show Status Bar",
description: "Enable to show the Status Bar during gameplay.")
var showStatusBar
private init()
{
self.prepareFeatures()