fixed forcing lightmode
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
c5b685015d
commit
984739b8f4
@ -17,6 +17,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||||||
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
|
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
|
||||||
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
|
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
|
||||||
guard let _ = (scene as? UIWindowScene) else { return }
|
guard let _ = (scene as? UIWindowScene) else { return }
|
||||||
|
|
||||||
|
self.window?.overrideUserInterfaceStyle = .light
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func sceneDidDisconnect(_ scene: UIScene) {
|
func sceneDidDisconnect(_ scene: UIScene) {
|
||||||
|
|||||||
@ -52,6 +52,8 @@ public class BaseViewController: UIViewController, Initable {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public func initialSetup() {
|
public func initialSetup() {
|
||||||
|
overrideUserInterfaceStyle = .light
|
||||||
|
|
||||||
if !initialSetupPerformed {
|
if !initialSetupPerformed {
|
||||||
initialSetupPerformed = true
|
initialSetupPerformed = true
|
||||||
//setupUpdateView()
|
//setupUpdateView()
|
||||||
|
|||||||
@ -18,6 +18,11 @@ protocol Initable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MenuViewController: UITableViewController {
|
class MenuViewController: UITableViewController {
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
overrideUserInterfaceStyle = .light
|
||||||
|
}
|
||||||
|
|
||||||
let items: [MenuComponent] = [
|
let items: [MenuComponent] = [
|
||||||
MenuComponent(title: "Badge", viewController: BadgeViewController.self),
|
MenuComponent(title: "Badge", viewController: BadgeViewController.self),
|
||||||
MenuComponent(title: "Button", viewController: ButtonViewController.self),
|
MenuComponent(title: "Button", viewController: ButtonViewController.self),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user