Use UIWindow subclass in DEBUG builds
This commit is contained in:
parent
52fa05b0fc
commit
12791ddf28
|
@ -11,6 +11,7 @@ import Combine
|
||||||
import CoreDataStack
|
import CoreDataStack
|
||||||
import MastodonCore
|
import MastodonCore
|
||||||
import MastodonExtension
|
import MastodonExtension
|
||||||
|
import MastodonUI
|
||||||
|
|
||||||
#if PROFILE
|
#if PROFILE
|
||||||
import FPSIndicator
|
import FPSIndicator
|
||||||
|
@ -35,8 +36,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
||||||
guard let windowScene = scene as? UIWindowScene else { return }
|
guard let windowScene = scene as? UIWindowScene else { return }
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
let window = TouchesVisibleWindow(windowScene: windowScene)
|
||||||
|
self.window = window
|
||||||
|
#else
|
||||||
let window = UIWindow(windowScene: windowScene)
|
let window = UIWindow(windowScene: windowScene)
|
||||||
self.window = window
|
self.window = window
|
||||||
|
#endif
|
||||||
|
|
||||||
// set tint color
|
// set tint color
|
||||||
window.tintColor = UIColor.label
|
window.tintColor = UIColor.label
|
||||||
|
|
Loading…
Reference in New Issue