fixed forcing lightmode

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-11-08 15:55:50 -06:00
parent c5b685015d
commit 984739b8f4
3 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// 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).
guard let _ = (scene as? UIWindowScene) else { return }
self.window?.overrideUserInterfaceStyle = .light
}
func sceneDidDisconnect(_ scene: UIScene) {

View File

@ -52,6 +52,8 @@ public class BaseViewController: UIViewController, Initable {
//--------------------------------------------------
public func initialSetup() {
overrideUserInterfaceStyle = .light
if !initialSetupPerformed {
initialSetupPerformed = true
//setupUpdateView()

View File

@ -18,6 +18,11 @@ protocol Initable {
}
class MenuViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
overrideUserInterfaceStyle = .light
}
let items: [MenuComponent] = [
MenuComponent(title: "Badge", viewController: BadgeViewController.self),
MenuComponent(title: "Button", viewController: ButtonViewController.self),