[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
|
return .all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var prefersStatusBarHidden: Bool {
|
||||||
|
return !ExperimentalFeatures.shared.showStatusBar.isEnabled
|
||||||
|
}
|
||||||
|
|
||||||
|
override var preferredStatusBarStyle: UIStatusBarStyle {
|
||||||
|
return .lightContent
|
||||||
|
}
|
||||||
|
|
||||||
required init()
|
required init()
|
||||||
{
|
{
|
||||||
super.init()
|
super.init()
|
||||||
|
|||||||
@ -17,6 +17,10 @@ struct ExperimentalFeatures: FeatureContainer
|
|||||||
options: VariableFastForwardOptions())
|
options: VariableFastForwardOptions())
|
||||||
var variableFastForward
|
var variableFastForward
|
||||||
|
|
||||||
|
@Feature(name: "Show Status Bar",
|
||||||
|
description: "Enable to show the Status Bar during gameplay.")
|
||||||
|
var showStatusBar
|
||||||
|
|
||||||
private init()
|
private init()
|
||||||
{
|
{
|
||||||
self.prepareFeatures()
|
self.prepareFeatures()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user