From e5772a9705a1db8bb6652c92f2a1c6d75f052de5 Mon Sep 17 00:00:00 2001 From: Dallon Archibald Date: Tue, 26 Jan 2021 15:49:10 -0500 Subject: [PATCH] Dark Mode Button (I'll finish when I get home) --- ProjectClock/Base.lproj/Main.storyboard | 13 +++++++++++-- ProjectClock/DebugViewController.swift | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ProjectClock/Base.lproj/Main.storyboard b/ProjectClock/Base.lproj/Main.storyboard index 3b51501..3bb4aa3 100644 --- a/ProjectClock/Base.lproj/Main.storyboard +++ b/ProjectClock/Base.lproj/Main.storyboard @@ -226,7 +226,7 @@ - + + @@ -898,7 +907,7 @@ - + diff --git a/ProjectClock/DebugViewController.swift b/ProjectClock/DebugViewController.swift index c4a989c..dd2a22f 100644 --- a/ProjectClock/DebugViewController.swift +++ b/ProjectClock/DebugViewController.swift @@ -43,4 +43,8 @@ class DebugViewController: UIViewController { Alarms.fromLocal().apply { $0.list.removeAll() }.localSave() } + + @IBAction func switchViewingMode(_ sender: Any) { + view.window?.overrideUserInterfaceStyle = .dark + } }