From fd890f9b606a8afb6a0aa4a676641f8da0451b87 Mon Sep 17 00:00:00 2001 From: Finn Voorhees Date: Thu, 31 Oct 2024 11:35:30 +0000 Subject: [PATCH] Set canBecomeKey to false on PassThroughWindow --- Sources/StreamDeckSimulator/StreamDeckSimulator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift index f192910..b2869ac 100644 --- a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift +++ b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift @@ -55,7 +55,8 @@ public final class StreamDeckSimulator { } private class PassThroughWindow: UIWindow { - + override var canBecomeKey: Bool { false } + override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { // Get view from superclass. guard let hitView = super.hitTest(point, with: event) else { return nil }