ZoneBox is a native macOS menu-bar utility for FancyZones-style window layouts: draw zones, then snap windows with Shift-drag or the keyboard.
This repository is proprietary (All Rights Reserved). It is not a fork of MacsyZones and must not incorporate GPL-licensed source.
- macOS 14.0 or later
- Xcode 16+ (local development; GitHub CI uses macos-15)
- XcodeGen to regenerate the project after file-tree changes (
brew install xcodegen)
./scripts/bootstrap.sh # xcodegen generate
open ZoneBox.xcodeprojOr from the command line:
make project
make testmake test runs ZoneBoxTests against the ZoneBoxCore static library (no app host) and fails if any file under ZoneBox/ imports SwiftUI.
make build and make test use .build/VerificationDerivedData for unsigned verification. To run the app, use ./script/build_and_run.sh --verify, which signs and launches it from .build/DerivedData. Keeping these outputs separate prevents verification builds from replacing the running app and disrupting Accessibility access.
- Open
ZoneBox.xcodeprojand Run the ZoneBox scheme. The first launch opens a Welcome Tour that explains where ZoneBox lives, lets you pick a starting layout, and walks through Accessibility if it is not granted yet. The app is signed with a stable Apple Development identity, so the Accessibility grant survives rebuilds. - If you skip the tour or later revoke Accessibility, ZoneBox shows a step-by-step Accessibility guide (orange warning icon in the menu bar). Click Open Accessibility Settings, turn on the ZoneBox switch, then return. If the switch is on but snapping still fails, use Quit & Relaunch. Reopen the tour anytime from the menu-bar menu (Welcome Tour…) or Settings → General.
- Menu extra (
rectangle.split.3x1, near the clock):- Preview Zones — flash the current layout
- Open Layout Editor — pick Columns/Rows/2×2 or draw zones, then Save
- Layouts — switch the layout for the display under the mouse
- Welcome Tour… — replay the first-launch walkthrough
- Settings… — Shift-drag, gutter, hotkeys notes
- Snap a window: drag it by the title bar, hold Shift (or right-click while dragging), drop on a numbered zone. Dragging inside the window content does not show the zone overlay. While the overlay is visible, press 1…9 to snap to that zone.
- After two or more neighboring grid zones each contain one snapped window, a divider handle appears in the seam. Drag it to resize those windows together; the new ratio is saved to the current layout.
- Keyboard defaults: Control+Option+1…9 snaps the focused window; Control+Option+Z opens the editor; Control+Option+U unsnaps; Control+Option+/ opens the keyboard shortcuts panel; Command+, opens Settings. Rebind these in Settings → Keyboard.
Drag diagnostics are saved locally across restarts, without starting a live log capture:
- Debug:
~/Library/Application Support/com.fancyzone.app.debug/Logs/snap.jsonl - Release:
~/Library/Application Support/com.fancyzone.app/Logs/snap.jsonl
Each JSON line includes a timestamp, app-run ID, drag-session ID, and technical event fields. Target changes, the displayed preview, mouse-up selection, and requested/returned window frames can be correlated within one drag. No window titles, document contents, screenshots, or credentials are recorded or uploaded.
Writes run off the main thread. The current file and four rotated files (snap.1.jsonl through snap.4.jsonl) retain up to 10 MiB total; older entries are replaced as the files fill. When reporting an intermittent snap failure, note the approximate time and the intended versus actual pane. Keep the rotated files too, since the relevant drag may have crossed a rotation.
Each successful layout save updates store.json.backup beside store.json in the app's Application Support directory. If the primary file is damaged, ZoneBox keeps the original as store.json.corrupt-<timestamp>, restores the latest usable backup, and shows a recovery notice with Show Files. If no backup can be restored, the notice explains that default layouts are being used. Files that cannot be safely read or preserved, including a newer schema, disable layout/workspace saves for that session instead of being overwritten.
License validation runs while the app remains open, with checks on a timer, wake, activation, and network availability. Successful validations are reused for six hours; failed requests retain the existing offline entitlement and retry with rate limiting.
The signed in-place update path has an additional machine-bound audit. Run make audit-update-install with ZONEBOX_UPDATE_FIXTURE_APP pointing to a signed 0.5.1 ZoneBox.app and ZONEBOX_UPDATE_OLD_FIXTURE_APP pointing to a signed 0.3.0 copy. The command fails when either fixture is missing instead of silently treating those tests as complete.
| Display name | ZoneBox |
| Bundle ID | com.fancyzone.app |
| Minimum OS | macOS 14.0 |
| Distribution | Developer ID + notarization (not Mac App Store) |
Snapping, layouts, numbered hotkeys, and divider handles stay free. ZoneBox Pro is a US$14.99 lifetime license (US$9.99 for the first 30 days) sold through Creem: workspaces, hover pin, and Quick Snapper. One key activates 2 Macs. New installs include a 14-day Pro trial. Buy from the product site, then activate in Settings -> License.
See docs/license.md.