{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "mirzaaghazadeh-iphone-duo-skills--make-camera-app-handle-both-front-cameras",
 "repo": "mirzaaghazadeh/iphone-duo-skills",
 "repo_url": "https://github.com/mirzaaghazadeh/iphone-duo-skills",
 "repo_slug": "mirzaaghazadeh-iphone-duo-skills",
 "title": "Make a capture app handle iPhone Duo's two front cameras",
 "page_title": "How to make a capture app handle iPhone Duo's two front cameras with Iphone Duo Skills",
 "summary": "Get camera direction, mirroring and preview right on a device with two front-facing cameras.",
 "who": "A developer maintaining a photo or video app that needs to work correctly on iPhone Duo's front cameras.",
 "problem": "The two front cameras and the question of which way a camera faces are AVFoundation-level details that the default camera code may not handle.",
 "outcome": "A capture flow that chooses between the virtual front camera and individual cameras, uses the direction coordinator correctly and handles mirroring and preview.",
 "steps": [
  "Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-camera` (inferred, check the README)",
  "Restart your agent session.",
  "Ask the agent to review your AVFoundation capture setup against the skill.",
  "Confirm the direction coordinator handler uses the direction map arrays for forward and backward descriptors.",
  "Test capture on a physical iPhone Duo and check the preview and mirroring in each pose."
 ],
 "agent_prompt": "Using the iphone-duo-camera skill from mirzaaghazadeh/iphone-duo-skills, review <path-to-capture-code> for virtual front camera use, individual camera selection, direction coordinator handling and mirroring. Output the changes needed with reasons, and verify that the change handler is written against AVCaptureDeviceDirectionMap as the README describes.",
 "agents": [
  "claude-code",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README notes its signatures were checked against Apple's API reference, so behavior on real hardware still needs testing on an actual iPhone Duo.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "An AI coding agent such as Claude Code, Cursor or Gemini",
  "Node.js with npx, since the README install uses npx",
  "An existing app or design to work on, native iOS or a supported cross-platform stack",
  "For native work, Xcode with the iOS 27.1 SDK, which the README calls the gate for edge-to-edge content, vertical bars, reserved regions and arrangements"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/make-camera-app-handle-both-front-cameras/",
 "md": "https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/make-camera-app-handle-both-front-cameras/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mirzaaghazadeh-iphone-duo-skills--make-camera-app-handle-both-front-cameras.json",
 "api_version": "v1"
}
