/tapkit-ios-sdk:tapkit-getting-startedfrom tapkit-ios-sdk
Guides through adding TAPKit SDK, pairing Tap devices (Tap Strap, TapXR, TapBand) in iOS Settings, connecting via BLE, and handling tap events with proper delegate setup.
Ships in tapkit-ios-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Works for Tap Strap, Tap Strap 2, TapXR, and TapBand. TAPKit selects the BLE adapter per device. The same delegate methods fire. TapXR and TapBand share the same BLE API.
HID availability: TAPInputMode.text(), controllerWithMouseHID(), and controllerWithFullHID() work only on the standard firmware (every Tap Strap, and TapXR by default); TapXR on the developer firmware (joined through the developer program) has no HID, so enable tap detection with TAPInputMode.controller() after connecting.
This repository ships an Xcode framework. There is no Package.swift and no podspec. Do not add Swift Package Manager or CocoaPods instructions.
TAPKit.xcodeproj.TAPKit.framework.import TAPKit in Swift. In Objective-C, #import <TAPKit/TAPKit-Swift.h>.Info.plist:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Bluetooth is required to connect to TAP devices.</string>
If the deployment target is below iOS 13, also add NSBluetoothPeripheralUsageDescription.
The SDK only connects to TAP devices already paired in Settings. It does not scan and it has no pairing screen.
Copy scripts/QuickstartViewController.swift into the app target. The required order is:
addDelegate. Implement TAPKitDelegate (every method is optional).setDefaultTAPInputMode(.controller(), immediate: true). Text mode types on the keyboard and sends no tap callbacks.setDefaultTAPXRState. .tapping() for finger taps, .airMouse() for pointer and air gestures.start() once, from the main screen. Calling start() again is safe (resume() starts only if needed).viewWillDisappear or deinit.forIdentifiers: nil applies a command to every connected device. Otherwise pass the UUID strings from tapConnected or getConnectedTaps().
| You want | What to set | Callback |
|---|---|---|
| Finger taps | .controller() and, on TapXR / TapBand, .tapping() | tapped(identifier:combination:multitap:) |
| Air mouse | .controller() and .airMouse() | moused(identifier:velocityX:velocityY:isMouse:) |
| Swipes, pinch, fist (processed iOS layer) | .airMouse(), or set the air-gesture vision model (see tapkit-air-gestures) | tapXRAirGestured |
| Tap Strap air gestures | Controller mode | tapAirGestured |
| Raw IMU | TAPInputMode.rawSensor(sensitivity:) | rawSensorDataReceived |
TapXR and TapBand share the BLE API. setTAPXRState(.tapping()) / .airMouse() selects the vision model. You can also set it directly after tapConnected:
TAPKit.sharedKit.setFeature(.modelDetection, enabled: true, forIdentifiers: [identifier])
TAPKit.sharedKit.setVisionSensorModel(.tapping, forIdentifiers: [identifier])
TAPKit.sharedKit.setVisionSensorOpMode(.trigger, forIdentifiers: [identifier])
vibrate(durations:forIdentifiers:) gives haptic feedback. Values are on/pause milliseconds, 10 ms steps, at most 18 values.readBatteryLevel, readFirmwareVersion, and readHardwareVersion. Results come back through the matching tapDidRead* methods. Versions are integers MMmmbb (30200 = 3.2.0).TAPKit.log.disableAllEvents(), or TAPKit.log.enable(event: .error).| Problem | Fix |
|---|---|
| Nothing connects | Turn the Tap on, pair it in Settings → Bluetooth, force-quit Tap Manager and any other app using it, then reopen this app. |
tapConnected fires but tapped does not (text mode) | Set TAPInputMode.controller(). Text mode types letters and hides taps from the SDK. |
| Connected TapXR or TapBand, still no taps | Enable .modelDetection, then setVisionSensorModel(.tapping) and setVisionSensorOpMode(.trigger), or setTAPXRState(.tapping()). |
| Letters appear in a text field when tapping | The device is in text mode. Switch to controller mode. |
| Bluetooth permission alert never appears | Add NSBluetoothAlwaysUsageDescription, then delete and reinstall the app. |
| Events stop in the background | Default behavior switches the device to text mode when the app resigns active. Set TAPKit.sharedKit.sendModeInBackground = true to keep the mode. |
A getFeature / getVisionSensor* / getIMUSensitivity completion is nil | The device is a Tap Strap, it did not answer within timeout (default 2 s), or another get of the same kind replaced this one. |
README.md in the SDK repositoryTAPKit-Example/ViewController.swifttapkit-tapping, tapkit-air-gestures, tapkit-motion, tapkit-raw-sensors, tapkit-knob, tapkit-dpad, tapkit-build-an-appWhat SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/tapkit-air-gesturesHandle TAPXRAirGesture (processed click, drag, drop, fist, swipe) on TapXR and TapBand, document raw firmware class indexes, switch tapping vs air-gesture models, and handle Tap Strap TAPAirGesture. Use for air gestures, pinch, swipe, fist, TAPXRState, or raw detections./tapkit-build-an-appBuild a complete iOS app or interactive experience controlled by a TAP device. Use when the user asks to build, make, or create something with their Tap, including games, presentations, media control, or creative tools./tapkit-dpadBuild a D-Pad style controller on TapXR or TapBand. Swipes move, short clicks select, a pinch-hold locks into rotate or drag, and a fist hides. Use for menus, select and move, drag, rotate, or game controls.npx claudepluginhub tapwithus/tap-ios-sdk --plugin tapkit-ios-sdkOther plugins' skills for the same job