
Vision Framework
Covers both the modern Swift-native Vision API (iOS 18+) with async/await and the legacy VNRequest pattern for backward compatibility. You get text recognition with language correction and custom vocabulary, face detection with landmarks, barcode scanning across a dozen symbologies, document scanning with structured layout understanding (paragraphs, tables, lists), plus object tracking for video. The modern API is cleaner,`try await request.perform(on: image)` instead of handler boilerplate,but you'll need the legacy patterns if you're supporting pre-iOS 18. Includes VisionKit's DataScannerViewController for live camera scanning and VNCoreMLRequest patterns for running custom Core ML models through Vision's pipeline.
- skills.sh installs
- 4K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill vision-framework --agent claude-codeInstalls into .claude/skills of the current project.
Files
Vision Framework
Detect text, faces, barcodes, objects, and body poses in images and video using on-device computer vision. Prefer the modern iOS 18+ request APIs and load the legacy reference only when the deployment target requires it.
See references/vision-requests.md for complete code patterns and references/visionkit-scanner.md for DataScannerViewController integration.
Contents
- Two API Generations
- Request Pattern (Modern API)
- Text Recognition (OCR)
- Face Detection
- Barcode Detection
- Document Scanning (iOS 26+)
- Image Segmentation
- Object Tracking
- Other Request Types
- Core ML Integration
- VisionKit: DataScannerViewController
- Common Mistakes
- Review Checklist
- References
Two API Generations
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Backend & APIs, Data Science & ML, Mobile Development, Office & Documents
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K
- Cloudkit3.5K
- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K
- Realitykit3.4K
- Avkit3.4K
- Spritekit3.3K