DEV Community

Cover image for Why I Built a macOS Cmd-Tab Switcher Without Screen Recording Permission (Swift 6 + AppKit)
Addo.Zhang
Addo.Zhang

Posted on Edited on

Why I Built a macOS Cmd-Tab Switcher Without Screen Recording Permission (Swift 6 + AppKit)

If you regularly keep 20+ apps open on macOS—editors, terminals, browsers, chat apps, notes—the built-in ⌘-Tab switcher starts to break down fast:

  • You have to tap Tab over and over to reach an app buried in the middle of the row.
  • You can't jump straight to a specific window of an app (or a specific terminal tab).
  • If an app's windows are minimized, ⌘-Tab focuses the menu bar and leaves you staring at an empty desktop.

Open-source tools like AltTab solve the window problem well by bringing Windows-style live thumbnails to macOS. There's just one catch: rendering live thumbnails of other apps' windows requires the system-wide Screen Recording permission—which on macOS 15 Sequoia also triggers recurring monthly OS re-confirmation prompts and menu bar indicators.

I wanted a switcher that stayed fast at 20+ apps without ever asking to record my screen. So I built AbcTab in pure Swift 6 + AppKit around a different trade-off.


1. The Core Trade-off: Skip Thumbnails, Optimize for Muscle Memory

When you have 4 or 5 windows open, scanning live thumbnails is intuitive. When you have 20+ apps and browser windows open, visually scanning a grid of tiny previews actually slows you down.

Instead of capturing pixels, AbcTab focuses on icons + first-letter badges + readable window/tab titles:

AbcTab macOS app switcher panel with first-letter badges

  • First-letter jump (English + Chinese Pinyin): Hold ⌘-Tab and tap C for Code, G for Ghostty, O for Obsidian, or W for WeChat (matching Pinyin initials automatically without switching input sources).
  • MRU cycling on collisions: When multiple apps share the same initial (e.g., Chrome and Ghostty both under G), tap the same letter again to cycle through them in Most-Recently-Used order.
  • Zero Screen Recording permission: Because AbcTab never captures window pixels, it only uses standard macOS Accessibility APIs to enumerate window titles, raise target windows across Spaces, and restore minimized windows.

2. Expanding Windows and Terminal Tabs (Including Ghostty)

For apps with multiple windows—or terminals that expose tabs cleanly such as Ghostty—staying on an app icon (or pressing ↓) expands a high-density list of window and tab titles right below the icon:

AbcTab multi-window and terminal tab expansion

In day-to-day coding, readable project names and terminal titles are almost always faster to recognize than a downscaled screenshot of two dark-mode editors.


3. Three Small UX Details That Made a Big Difference

Ping-Pong Pair Mode (`)

When you're bouncing between an editor and documentation (or two windows of the same app), checking Slack or WeChat once destroys normal MRU ordering.

In AbcTab, pressing ` locks the highlighted app (or specific window) together with your current context as a pair:

AbcTab Ping-Pong mode pairing two windows

From then on, a single blind ⌘-Tab always snaps back to your paired target—even if you briefly jumped to other apps in between.

Stopping a Stationary Cursor from Stealing Selection

Because the switcher panel opens centered on screen, the mouse cursor often happens to sit right underneath one of the tiles. Early on, tiny trackpad micro-jitters would trigger hover selection and hijack ⌘-Tab.

The fix in v1.4.0 was two-fold:

  1. Require >10pt of real pointer travel before hover selection arms itself, and re-suppress hover on any keypress.
  2. Add an explicit "Ignore mouse hover" toggle in General settings for pure-keyboard users (clicking a tile still works).

Offline-First Licensing with Ed25519

I hate desktop utilities that phone home on every launch. AbcTab verifies licenses completely offline using an embedded Ed25519 public key (CryptoKit) against signed tokens—zero telemetry, zero background polling.


AbcTab vs. AltTab: Honest Take

If you rely on visual thumbnail previews and don't mind granting Screen Recording permission, AltTab is free, open-source, and genuinely great.

If you'd rather avoid Screen Recording permission altogether and prefer keyboard-first letter jumping, Ping-Pong pairs, and Ghostty tab switching, you can read the full side-by-side breakdown here:

👉 AbcTab vs. AltTab — Full Comparison

And if you want to try AbcTab yourself (macOS 14+, Apple Silicon & Intel, 14-day free trial with no credit card, $9.9 one-time lifetime license):

👉 Download AbcTab on SoloCraft

Happy to answer any questions about Swift 6, AppKit panel focus quirks, or Accessibility API edge cases in the comments!


Top comments (0)