Use UIWindow subclass in DEBUG builds

This commit is contained in:
Chase Carroll 2022-12-05 10:22:14 -05:00
parent 52fa05b0fc
commit 12791ddf28
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import Combine
import CoreDataStack
import MastodonCore
import MastodonExtension
import MastodonUI
#if PROFILE
import FPSIndicator
@ -35,8 +36,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else { return }
#if DEBUG
let window = TouchesVisibleWindow(windowScene: windowScene)
self.window = window
#else
let window = UIWindow(windowScene: windowScene)
self.window = window
#endif
// set tint color
window.tintColor = UIColor.label