Skip to content

Commit

Permalink
Merge pull request #27 from noppefoxwolf/feature/Remove-makeKeyAndVis…
Browse files Browse the repository at this point in the history
…ible

remove makeKeyAndVisible
  • Loading branch information
noppefoxwolf authored Jan 4, 2022
2 parents 425ad86 + b5203b2 commit 2b1bb5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
21 changes: 0 additions & 21 deletions Sources/DebugMenu/Extensions/UIApplication+.swift

This file was deleted.

5 changes: 1 addition & 4 deletions Sources/DebugMenu/View/InAppDebuggerWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class InAppDebuggerWindow: UIWindow {
dashboardItems: [DashboardItem],
options: [Options]
) {
let keyWindow = UIApplication.shared.findKeyWindow()
let window = factory()
window.windowLevel = UIWindow.Level.statusBar + 1
window.rootViewController = FloatingViewController(
Expand All @@ -55,10 +54,8 @@ public class InAppDebuggerWindow: UIWindow {
)
// visible時にディスプレイサイズと同じサイズだとスクリーンエッジの設定を決める対象に選ばれるので避ける
window.frame.size.width += 1
window.makeKeyAndVisible()
window.isHidden = false
window.frame.size.width -= 1

keyWindow?.makeKeyAndVisible()
windows.append(window)
}

Expand Down

0 comments on commit 2b1bb5e

Please sign in to comment.