TAP iOS SDK
Native iOS framework for Tap Strap, Tap Strap 2, TapXR, and TapBand. TAPKit receives finger taps, air gestures, mouse movement, and raw sensor data, and it sends haptics and mode commands.
TapXR (current developer firmware) and TapBand share the same BLE API and the full gesture set: taps, thumb swipes up/down/left/right, thumb-to-finger pinches with hold, and fist with hold. TapBand is coming soon and is not for sale; join the waitlist. Do not describe TapBand as unsupported or as a missing target. Do not invent a TapXR firmware version number.
Written in Swift with Objective-C interoperability. One entry point: TAPKit.sharedKit. The Xcode project also includes TAPKit-Example (sample app) and TAPKitUnityBridge (Unity wrapper).
Requirements
- iOS 11.2+ (framework target); iOS 15.6+ recommended for the example app
- Xcode with Swift support
- Bluetooth enabled on the host device
- TAP device paired with the iOS device in Settings → Bluetooth (the SDK connects to already-paired peripherals; it does not run its own scan UI)
Add to your app's Info.plist:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Bluetooth is required to connect to TAP devices.</string>
Integration
This repository ships an Xcode framework. There is no Package.swift and no podspec. Swift Package Manager and CocoaPods are not how you add TAPKit.
- Clone this repository and open
TAPKit.xcodeproj.
- Build the TAPKit scheme to produce
TAPKit.framework.
- Embed
TAPKit.framework in your app (Embed & Sign).
- Import in Swift:
import TAPKit
For Objective-C, import the generated header:
#import <TAPKit/TAPKit-Swift.h>
Quick start
class MyViewController: UIViewController, TAPKitDelegate {
override func viewDidLoad() {
super.viewDidLoad()
TAPKit.log.disableAllEvents() // optional
TAPKit.sharedKit.addDelegate(self)
TAPKit.sharedKit.setDefaultTAPInputMode(.controller(), immediate: true)
TAPKit.sharedKit.setDefaultTAPXRState(TAPXRState.airMouse(), applyImmediate: true) // TapXR / TapBand
TAPKit.sharedKit.start()
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
TAPKit.sharedKit.removeDelegate(self)
}
func tapConnected(withIdentifier identifier: String, name: String) {
print("Connected: \(name) (\(identifier))")
}
func tapped(identifier: String, combination: UInt8, multitap: UInt8) {
let fingers = TAPCombination.toFingers(combination)
print("Tap from \(identifier): \(fingers), multitap: \(multitap)")
}
}
Call start() once (typically when your main screen appears). Add one or more TAPKitDelegate implementations before or after start().
Devices
Write one delegate. TAPKit selects the BLE adapter when the device connects.
| Device | Status | What you get |
|---|
| Tap Strap, Tap Strap 2 | Available | Finger taps, mouse, Tap Strap air gestures (tapAirGestured) |
| TapXR | Available. Current developer firmware reports the full gesture set. | Taps, thumb swipes, pinches with hold, fist with hold |
| TapBand | Coming soon. Same BLE API as TapXR. Not for sale. Waitlist | Same as TapXR |
TapXR and TapBand use one framed BLE API (one read/write characteristic pair). Tap Strap uses the classic layout (separate notify characteristics and NUS mode commands). TAPKit translates TAPInputMode and TAPXRState for both. Commands whose types start with TAPV2 (TAPV2DeviceFeature, vision sensor, IMU sensitivity, standby, serial number) apply to TapXR and TapBand. On Tap Strap they are ignored and getters complete with nil.
AI-assisted development
Install the TAPKit skills into a coding agent, then describe the iOS app you want. The skills know the real order: add the framework, pair in Settings, addDelegate, set the input mode, then start(). start() alone delivers no taps.
The installer writes into the current folder. Add -g to install for your user, so the skills are available in every project.
| Tool | This folder (default) | Every project (-g) |
|---|
| Claude Code | .claude/skills/ | claude plugin install … --scope user |
| Codex | .agents/skills/ | codex plugin add … |
| Cursor | .cursor/skills/ + .cursor/rules/tapkit-ios-sdk.mdc | ~/.cursor/skills/ + ~/.cursor/rules/tapkit-ios-sdk.mdc |
Any agent that reads AGENTS.md | AGENTS.md | ~/.codex/AGENTS.md |
From a clone of this repository: