axiom-camera-capture

Implement custom camera capture with AVFoundation across Apple platforms.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-camera-capture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-camera-capture
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-camera-capture
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-camera-capture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for implementing advanced camera capture features in your iOS, iPadOS, macOS, tvOS, and visionOS applications, ensuring a responsive and high-quality user experience.

Core Features & Use Cases

  • Custom Camera UI: Build your own camera interface instead of relying on the system picker.
  • Photo & Video Capture: Capture high-quality photos and record videos with audio.
  • Responsive Capture: Implement zero-shutter-lag and overlapping captures for an instant feel.
  • Rotation Handling: Ensure correct orientation with RotationCoordinator for iOS 17+.
  • Session Management: Handle interruptions gracefully and manage the camera session lifecycle.

Quick Start

Use the axiom-camera-capture skill to set up a basic camera preview in SwiftUI.

Frequently Asked Questions about axiom-camera-capture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement custom camera capture in SwiftUI using AVFoundation?

Custom camera capture in SwiftUI with AVFoundation requires configuring an AVCaptureSession, adding inputs and outputs like AVCapturePhotoOutput, and displaying the feed via a camera preview. This Skill provides setup patterns and delegate protocols for a responsive capture pipeline.

What's the best way to handle device rotation during video recording on iOS 17?

Device rotation during video recording on iOS 17+ is handled using RotationCoordinator. This ensures your AVCaptureSession maintains correct orientation dynamically, preventing skewed photos and videos as the user rotates their device.

Can I achieve zero-shutter-lag for photo capture with AVCapturePhotoOutput?

Zero-shutter-lag photo capture is achievable with AVCapturePhotoOutput by pre-configuring a responsive capture pipeline. This Skill details how to implement overlapping captures and prepare photo output delegates for instant image capture without delay.

How do I manage AVCaptureSession interruptions and lifecycle in a custom camera UI?

AVCaptureSession interruptions are managed by implementing robust interruption handling and lifecycle controls. This Skill provides guidance on responding to system interruptions, resuming camera capture seamlessly, and properly tearing down session resources.

Does this AVFoundation camera capture Skill support macOS and visionOS platforms?

AVFoundation camera capture implementation applies across Apple platforms, including iOS, iPadOS, macOS, tvOS, and visionOS. The session setup and photo capture patterns provided ensure seamless integration for custom camera UIs on these operating systems.

Why does my AVCaptureMovieFileOutput video recording fail without audio?

AVCaptureMovieFileOutput video recording requires explicit audio input configuration within your AVCaptureSession. This Skill covers adding audio inputs alongside video inputs to ensure your video captures include synchronized sound.