This is for apps that need to work with motorized iPhone stands like Belkin's MagSafe tracking mount. The framework handles the motor control and subject detection automatically through built-in ML, so you get pan and tilt tracking without writing computer vision code. System tracking runs out of the box with AVFoundation cameras, or you can disable it and feed your own Vision observations for custom behavior. The framing modes are nice if you need subjects positioned left or right instead of centered, which matters when you have UI overlays eating screen real estate. Requires iOS 17 and real hardware since the Simulator obviously can't talk to motors. Good for video calling apps, content recording tools, or anything where keeping a person in frame matters more than the camera operator.
- skills.sh installs
- 3.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill dockkit --agent claude-codeInstalls into .claude/skills of the current project.
Files
DockKit
Framework for integrating with motorized camera stands and gimbals that physically track subjects by rotating the iPhone. DockKit handles motor control, subject detection, and framing so camera apps get 360-degree pan and 90-degree tilt tracking with no additional code. Apps can override system tracking to supply custom observations, control motors directly, or adjust framing. iOS 17+, Swift 6.3.
Contents
- Setup
- Discovering Accessories
- System Tracking
- Custom Tracking
- Framing and Region of Interest
- Motor Control
- Animations
- Tracking State and Subject Selection
- Accessory Events
- Battery Monitoring
- Common Mistakes
- Review Checklist
- References
Setup
Import DockKit:
import DockKit
DockKit requires a physical DockKit-compatible accessory and a real device. The Simulator cannot connect to dock hardware.
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Category
- Mobile Development
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Swift Security3.2K
- Tabletopkit3.1K
- App Store Optimization3.1K
- Swift Api Design Guidelines3K
- Swiftlint2.9K
- Swift Formatstyle2.8K
- Core Data2.8K
- Focus Engine2.8K
- Ios Security1.1K
- Live Activities465
- Mapkit Location461
- Photos Camera Media456
- Eventkit Calendar415
- Cloudkit Sync413
- Metrickit Diagnostics409
- Musickit Audio409
- Realitykit Ar407
- Callkit Voip403
- Pencilkit Drawing403
- Homekit Matter402
