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.

IslandPlacement: import CoreGraphics on the Mac (CGRect's edges)

Claudeba5ddadf6aff
diff --git a/NotchBuddy/Sources/App/IslandPlacement.swift b/NotchBuddy/Sources/App/IslandPlacement.swift
index 3e9977a8..c1855c58 100644
--- a/NotchBuddy/Sources/App/IslandPlacement.swift
+++ b/NotchBuddy/Sources/App/IslandPlacement.swift
@@ -1,4 +1,7 @@
import Foundation
+#if canImport(CoreGraphics)
+import CoreGraphics
+#endif
/// Where the island lives: at the notch (top centre), or in one of the screen's four corners.
/// In a corner it is a small floating pill that opens from its corner, downwards from the top
diff --git a/tests/IslandPlacementTests.swift b/tests/IslandPlacementTests.swift
index fadb4887..e57b03fc 100644
--- a/tests/IslandPlacementTests.swift
+++ b/tests/IslandPlacementTests.swift
@@ -1,4 +1,7 @@
import Foundation
+#if canImport(CoreGraphics)
+import CoreGraphics
+#endif
@main
enum IslandPlacementTests {