[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:
parent
77b26210ab
commit
05e94902b8
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user