Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Let the Settings window resize

Louis Raille1f5f86abbee0
diff --git a/NotchBuddy/Sources/App/AppDelegate.swift b/NotchBuddy/Sources/App/AppDelegate.swift
index 8ec8af07..f94af2bd 100644
--- a/NotchBuddy/Sources/App/AppDelegate.swift
+++ b/NotchBuddy/Sources/App/AppDelegate.swift
@@ -52,11 +52,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
placeBelowIsland(w)
w.makeKeyAndOrderFront(nil); NSApp.activate(ignoringOtherApps: true); return
}
- let win = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 480, height: 540),
+ let win = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 480, height: 720),
styleMask: [.titled, .closable, .miniaturizable, .resizable],
backing: .buffered, defer: false)
win.title = "Settings — Coucou"
- win.contentView = NSHostingView(rootView: SettingsView())
+ let host = NSHostingView(rootView: SettingsView())
+ host.sizingOptions = [.minSize]
+ win.contentView = host
win.contentMinSize = NSSize(width: 420, height: 320)
win.isReleasedWhenClosed = false
placeBelowIsland(win)
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swift
index 7114f30c..3fdb5045 100644
--- a/NotchBuddy/Sources/App/SettingsView.swift
+++ b/NotchBuddy/Sources/App/SettingsView.swift
@@ -339,7 +339,7 @@ struct SettingsView: View {
}
.padding(20)
}
- .frame(width: 480, height: 720)
+ .frame(minWidth: 420, maxWidth: .infinity, minHeight: 320, maxHeight: .infinity)
}
// MARK: - Actions