<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql" -->

---
title: Build a great camera experience for iPhone Duo | Apple
description: Apple's camera software team walks through building camera experiences for the new iPhone Duo, a foldable-style device with two front cameras (an outer...
canonical: https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build a great camera experience for iPhone Duo | Apple | daily.dev
og:description: Apple's camera software team walks through building camera experiences for the new iPhone Duo, a foldable-style device with two front cameras (an outer...
og:url: https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql
og:image: https://api.daily.dev/og/posts/cpYqethql.png
og:image:alt: Build a great camera experience for iPhone Duo | Apple
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a great camera experience for iPhone Duo | Apple

**[Apple Developer](https://daily.dev/sources/appledeveloper)** · 9 min read · 0 upvotes · 0 comments

## Summary

Apple's camera software team walks through building camera experiences for the new iPhone Duo, a foldable-style device with two front cameras (an outer ultrawide and an under-display inner ultrawide). Developers can use AV Capture Device Discovery Session to find a new Virtual Front Camera that auto-switches between physical cameras, or use built-in device types to access each camera's full capabilities (inner: 1080p/60fps, outer: 4K/120fps) individually. The new AVCaptureDeviceDirectionCoordinator API reports which cameras are forward- or backward-facing as the device opens, closes, or flips, replacing the fixed front/back position property. Additional tips cover preview layout with videoGravity, dynamicAspectRatio for filling the display with the square sensor, and using AVCaptureDeviceRotationCoordinator for consistent rotation handling. Developers are advised to use the iOS 27.1 SDK to fully support iPhone Duo.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=8mNyxpsx7fY>

## Questions this post answers

### How do I access the front cameras on iPhone Duo using AVFoundation?

Use AVCaptureDevice Discovery Session requesting position .front with the Wide or Ultra Wide device type; on iPhone Duo this discovers a new Virtual Front Camera that automatically switches between the outer ultrawide camera and the inner under-display ultrawide camera depending on whether the device is open or closed. For direct access to a specific camera, use the built-in outer ultrawide or built-in inner ultrawide device types instead.

_daily.dev surfaces platform API guides like this for developers adapting camera features to new hardware._

### What is the difference between the inner and outer front camera specs on iPhone Duo?

The inner ultrawide front camera under the display supports up to 1080p video at 60fps, while the outer ultrawide front camera supports up to 4K resolution at 120fps. When an app uses the Virtual Front Camera instead of the individual devices, it is limited to the capabilities common to both: a maximum of 1080p at 60fps, and depth data is unsupported entirely.

_developers weighing camera capability trade-offs can track hardware-specific API details on daily.dev._

### How does AVCaptureDeviceDirectionCoordinator determine whether a camera is forward-facing or backward-facing?

It ties camera direction to a specific UIView, the device types being monitored, and a change handler, reporting cameras as forward-facing or backward-facing relative to that view. On iPhone Duo, opening, closing, or flipping the device changes which physical camera is forward-facing, and the coordinator's change handler fires with an AVCaptureDeviceDescriptor so the app can reconfigure its AVCaptureSession accordingly.

_daily.dev helps developers keep up with new multi-display camera APIs as device hardware evolves._

## Similar posts on daily.dev

- [The Thumb Rule Goes Sideways: What iPhone Duo Teaches Us About Mobile UX](https://daily.dev/posts/the-thumb-rule-goes-sideways-what-iphone-duo-teaches-us-about-mobile-ux-jjglnf8ua) · Medium · 2 upvotes · 0 comments
- [iPhone Duo is an absolute beast as a…](https://daily.dev/posts/iphone-duo-is-an-absolute-beast-as-a--boarvymka) · Justin Searls · 0 upvotes · 0 comments

---

Tags: [#apple](https://daily.dev/tags/apple), [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Build a great camera experience for iPhone Duo | Apple","url":"https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql"},"datePublished":"2026-09-09T19:08:29.593Z","dateModified":"2026-09-14T22:18:34.962Z","description":"Apple's camera software team walks through building camera experiences for the new iPhone Duo, a foldable-style device with two front cameras (an outer...","image":"https://i.ytimg.com/vi/8mNyxpsx7fY/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/8mNyxpsx7fY/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Apple Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Apple Developer","logo":"https://media.daily.dev/image/upload/s--CAtMViBl--/f_auto/v1711726806/logos/appledeveloper","url":"https://daily.dev/sources/appledeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"apple,ios,swift","timeRequired":"PT9M","video":{"@type":"VideoObject","name":"Build a great camera experience for iPhone Duo | Apple","description":"Apple's camera software team walks through building camera experiences for the new iPhone Duo, a foldable-style device with two front cameras (an outer...","thumbnailUrl":"https://i.ytimg.com/vi/8mNyxpsx7fY/sddefault.jpg","uploadDate":"2026-09-09T19:08:29.593Z","duration":"PT9M","url":"https://api.daily.dev/r/cpYqethql","embedUrl":"https://www.youtube.com/embed/8mNyxpsx7fY"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apple Developer","item":"https://daily.dev/sources/appledeveloper"},{"@type":"ListItem","position":3,"name":"Build a great camera experience for iPhone Duo | Apple"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/build-a-great-camera-experience-for-iphone-duo-apple-cpyqethql#faq","mainEntity":[{"@type":"Question","name":"How do I access the front cameras on iPhone Duo using AVFoundation?","acceptedAnswer":{"@type":"Answer","text":"Use AVCaptureDevice Discovery Session requesting position .front with the Wide or Ultra Wide device type; on iPhone Duo this discovers a new Virtual Front Camera that automatically switches between the outer ultrawide camera and the inner under-display ultrawide camera depending on whether the device is open or closed. For direct access to a specific camera, use the built-in outer ultrawide or built-in inner ultrawide device types instead. daily.dev surfaces platform API guides like this for developers adapting camera features to new hardware."}},{"@type":"Question","name":"What is the difference between the inner and outer front camera specs on iPhone Duo?","acceptedAnswer":{"@type":"Answer","text":"The inner ultrawide front camera under the display supports up to 1080p video at 60fps, while the outer ultrawide front camera supports up to 4K resolution at 120fps. When an app uses the Virtual Front Camera instead of the individual devices, it is limited to the capabilities common to both: a maximum of 1080p at 60fps, and depth data is unsupported entirely. developers weighing camera capability trade-offs can track hardware-specific API details on daily.dev."}},{"@type":"Question","name":"How does AVCaptureDeviceDirectionCoordinator determine whether a camera is forward-facing or backward-facing?","acceptedAnswer":{"@type":"Answer","text":"It ties camera direction to a specific UIView, the device types being monitored, and a change handler, reporting cameras as forward-facing or backward-facing relative to that view. On iPhone Duo, opening, closing, or flipping the device changes which physical camera is forward-facing, and the coordinator's change handler fires with an AVCaptureDeviceDescriptor so the app can reconfigure its AVCaptureSession accordingly. daily.dev helps developers keep up with new multi-display camera APIs as device hardware evolves."}}]}
```

