DEV Community

Cover image for MacPeek – Windows-style taskbar preview for macOS Dock
Lobory TV
Lobory TV

Posted on

MacPeek – Windows-style taskbar preview for macOS Dock

Hi dev,

I built MacPeek, a small macOS utility that adds window preview on Dock hover — similar to how Windows shows taskbar thumbnails.

How it works:

  • Hover over any Dock icon → live preview popup appears
  • Multiple windows → shows a grid of thumbnails
  • Click any thumbnail → switches to that specific window
  • You can even close individual windows from the preview

Technical details:

  • Built with SwiftUI + AXUIElement Accessibility API + ScreenCaptureKit
  • Uses CGWindowListCopyWindowInfo for window enumeration
  • Parallel capture with Swift TaskGroup for multi-window performance
  • ~3MB binary, minimal CPU usage
  • Coordinate conversion handles multi-monitor setups correctly (primary screen vs NSScreen.main was a fun bug to fix)

Privacy: No analytics, no network calls except Gumroad/LemonSqueezy license validation. Fully offline otherwise.

7-day free trial, $2.99 lifetime.

Top comments (0)