Hi CoderLegion ๐ I'm Ritesh, a solo iOS and Mac developer from India, and this is my first post here.
For the last few months I've been building Touch Deck, an app that turns the iPhone or iPad you already own into a Stream Deck-style control deck for your Mac. I wanted hardware-deck convenience without buying another gadget, and without spending an evening recording every shortcut by hand.
The feature I'm proudest of: decks built from menus
Most deck apps make you add each shortcut yourself, or download a profile someone else made. Touch Deck reads them from the app instead.
Pick any app on your Mac and the Mac companion walks that app's menu bar with the Accessibility API (AXUIElementCreateApplication, then down from kAXMenuBarAttribute), collects every item that has a keyboard shortcut, and sends the list to the phone. Each menu becomes a page of keys, already labelled with the command, an icon and its key combination.
Xcode gave me 190 shortcuts across 11 menus in about a second. IntelliJ IDEA gave 88 across 12. There's no list of supported apps: it reads whatever is on your Mac, including tools nobody has heard of.
Decks that follow you
The Mac app watches which app is in front. Switch to Final Cut Pro and the phone shows editing keys; switch to Xcode and it shows Build, Run and Stop; go anywhere else and you're back on your everyday keys. Quick Command-Tab hops are ignored for a moment, so the deck doesn't flicker.
How the phone talks to the Mac
Everything stays on your own network, with no server and no account:
Discovery and transport: Apple's Network framework. The Mac advertises a _touchdeck._tcp Bonjour service with NWListener, and the phone finds it with NWBrowser.
Pairing: a four-digit code you confirm on both screens. After that the devices trust each other and reconnect on their own.
Encryption: messages are sealed with CryptoKit's ChaChaPoly.
Pressing keys: the Mac app posts the keystrokes, which is why it asks for Accessibility permission and nothing else (no Screen Recording, no Input Monitoring, no Full Disk Access).
A press reaches the Mac in about 40 ms on a normal home Wi-Fi network.
New in 1.3: Apple Watch and Terminal commands
Apple Watch. watchOS doesn't let a watch app talk to a Mac directly, so the watch relays through the iPhone with WatchConnectivity. It shows the first four keys of the profile the phone is on, follows the app in front, and supports Double Tap: tap your finger and thumb together twice to press the key in a place you chose. It makes a surprisingly good hands-free slide clicker.
Terminal commands from a key. You write a command or a short script in the Mac app and allow it there. The key on your phone only ever sends which command to run, never the script itself, so a lost phone can't run anything new on your Mac. A few details I enjoyed getting right:
Commands run in your login shell, in a folder you choose.
Keeps running gives a command like npm run dev play and stop on the key, with the latest output one tap away.
sudo can't prompt for a password without a terminal, so there's Run as administrator: approve once with your Mac password, or have macOS ask every time. The app never stores the password.
A typical command key: pull and restart the dev server
cd ~/Code/my-app && git pull && npm install && npm run dev
What it runs on
SwiftUI on iPhone, iPad, iPhone Duo and Apple Watch, with an AppKit and SwiftUI menu-bar app on the Mac. It needs iOS 26 and macOS 26. It's free for 7 days.
If you want to try it, search Touch Deck on the App Store, or visit www.touchdeck.in.
I'd love your input
Two questions for the developers here:
Which command would you put on a key first?
Some apps only show certain shortcuts when a window is in a particular state, so reading the menu bar misses them. Has anyone found a reliable way to read those?
Thanks for reading. Happy to answer anything about the Accessibility API, Network framework or WatchConnectivity side of it.