Skip to content

Commit 2b1bb5e

Browse files
authored
Merge pull request #27 from noppefoxwolf/feature/Remove-makeKeyAndVisible
remove makeKeyAndVisible
2 parents 425ad86 + b5203b2 commit 2b1bb5e

2 files changed

Lines changed: 1 addition & 25 deletions

File tree

Sources/DebugMenu/Extensions/UIApplication+.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

Sources/DebugMenu/View/InAppDebuggerWindow.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class InAppDebuggerWindow: UIWindow {
4545
dashboardItems: [DashboardItem],
4646
options: [Options]
4747
) {
48-
let keyWindow = UIApplication.shared.findKeyWindow()
4948
let window = factory()
5049
window.windowLevel = UIWindow.Level.statusBar + 1
5150
window.rootViewController = FloatingViewController(
@@ -55,10 +54,8 @@ public class InAppDebuggerWindow: UIWindow {
5554
)
5655
// visible時にディスプレイサイズと同じサイズだとスクリーンエッジの設定を決める対象に選ばれるので避ける
5756
window.frame.size.width += 1
58-
window.makeKeyAndVisible()
57+
window.isHidden = false
5958
window.frame.size.width -= 1
60-
61-
keyWindow?.makeKeyAndVisible()
6259
windows.append(window)
6360
}
6461

0 commit comments

Comments
 (0)