Skip to content

Commit 0ca850c

Browse files
committed
Remove the toggle
1 parent 2c3022f commit 0ca850c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

OverlayWindow/Sources/OverlayWindow/OverlayPanel.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@ final class OverlayPanel: NSPanel {
119119
ZStack {
120120
Rectangle().fill(.green.opacity(debugOverlayPanel ? 0.1 : 0))
121121
.allowsHitTesting(false)
122-
.overlay(alignment: .topTrailing) {
123-
HStack {
124-
Button(action: {
125-
debugOverlayPanel.toggle()
126-
}) {
127-
Image(systemName: "eye")
128-
.foregroundColor(debugOverlayPanel ? .green : .red)
129-
.padding()
130-
}
131-
.buttonStyle(.plain)
132-
}
133-
}
134122
content()
135123
.environment(\.overlayFrame, panelState.windowFrame)
136124
.environment(\.overlayDebug, debugOverlayPanel)

0 commit comments

Comments
 (0)