VOOZH about

URL: https://dev.to/lobory_tv_436a726a317aa5d/macpeek-windows-style-taskbar-preview-for-macos-dock-295i

⇱ MacPeek – Windows-style taskbar preview for macOS Dock - DEV Community


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.

👁

Some comments may only be visible to logged-in visitors. Sign in to view all comments.