<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7" -->

---
title: iPhone Duo Simulator: Testing and optimizing your...
description: A deep dive into optimizing SwiftUI apps for the new iPhone Duo foldable device, covering installation of the iPhone Duo Simulator in Xcode 27.1, making...
canonical: https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: iPhone Duo Simulator: Testing and optimizing your SwiftUI app | daily.dev
og:description: A deep dive into optimizing SwiftUI apps for the new iPhone Duo foldable device, covering installation of the iPhone Duo Simulator in Xcode 27.1, making...
og:url: https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7
og:image: https://api.daily.dev/og/posts/BZ8D7UeS7.png
og:image:alt: iPhone Duo Simulator: Testing and optimizing your SwiftUI app
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.

# iPhone Duo Simulator: Testing and optimizing your SwiftUI app

**[SwiftLee](https://daily.dev/sources/avanderlee)** · 17 min read · 0 upvotes · 0 comments

## Summary

A deep dive into optimizing SwiftUI apps for the new iPhone Duo foldable device, covering installation of the iPhone Duo Simulator in Xcode 27.1, making layouts resizable using NavigationSplitView and ViewThatFits, adopting the new ArrangementView API for split or overlay layouts, querying reserved regions to avoid the fold and camera occlusions, responding to hinge angle changes with the onHingeChange modifier, adapting toolbars for vertical placement, and understanding what the Simulator cannot replicate (camera transitions, haptics, thermal behavior). Also covers using an updated SwiftUI Agent Skill to have an AI agent review views for iPhone Duo readiness, and links to Apple's official developer resources and Tech Talks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.avanderlee.com/swiftui/iphone-duo-simulator>

## Questions this post answers

### How do I use ArrangementView in SwiftUI for iOS 27.1?

ArrangementView, introduced in iOS 27.1, lets you define a primary and secondary view whose arrangement adapts automatically to available space, useful for layouts like a video player and its playlist. Use the .split style to keep both regions visible side by side, or .overlay to let the secondary view appear on top of the primary content.

_Developers adopting iOS 27.1 layout APIs can find implementation patterns and follow-up coverage on daily.dev._

### How do I detect the fold or camera area on iPhone Duo in SwiftUI?

SwiftUI exposes reserved regions through GeometryProxy's reservedRegions method, which returns divisions (like the active fold) and occlusions (like the inner camera). Each region provides a frame, margins, and an isActive state, letting custom canvases move or resize content around the fold instead of assuming a single continuous screen.

_Track new adaptive-layout APIs like this one on daily.dev while building for foldable and multi-display devices._

### How do I make a SwiftUI view respond to iPhone Duo hinge angle changes?

Use the onHingeChange modifier, available in iOS 27.1, which provides a hinge context including angle and status (such as partiallyOpen). This should drive optional visual enhancements, like scaling artwork based on fold angle, not core layout decisions, since the hinge angle's update frequency isn't precise enough for positioning essential interface elements.

_Developers experimenting with hinge-based interactions can keep up with SwiftUI API changes on daily.dev._

## Similar posts on daily.dev

- [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: [#ios](https://daily.dev/tags/ios), [#swiftui](https://daily.dev/tags/swiftui), [#xcode](https://daily.dev/tags/xcode)

[View this post on daily.dev](https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7)

```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":"iPhone Duo Simulator: Testing and optimizing your SwiftUI app","url":"https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7"},"datePublished":"2026-09-22T10:20:08.284Z","dateModified":"2026-09-22T20:46:35.738Z","description":"A deep dive into optimizing SwiftUI apps for the new iPhone Duo foldable device, covering installation of the iPhone Duo Simulator in Xcode 27.1, making...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fb07c3f2823ca9703e66d78180e1f3d8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fb07c3f2823ca9703e66d78180e1f3d8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"SwiftLee","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":"SwiftLee","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/407bdbf78c69402985a468cb336a76ae","url":"https://daily.dev/sources/avanderlee"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swiftui,xcode","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"SwiftLee","item":"https://daily.dev/sources/avanderlee"},{"@type":"ListItem","position":3,"name":"iPhone Duo Simulator: Testing and optimizing your SwiftUI app"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-bz8d7ues7#faq","mainEntity":[{"@type":"Question","name":"How do I use ArrangementView in SwiftUI for iOS 27.1?","acceptedAnswer":{"@type":"Answer","text":"ArrangementView, introduced in iOS 27.1, lets you define a primary and secondary view whose arrangement adapts automatically to available space, useful for layouts like a video player and its playlist. Use the .split style to keep both regions visible side by side, or .overlay to let the secondary view appear on top of the primary content. Developers adopting iOS 27.1 layout APIs can find implementation patterns and follow-up coverage on daily.dev."}},{"@type":"Question","name":"How do I detect the fold or camera area on iPhone Duo in SwiftUI?","acceptedAnswer":{"@type":"Answer","text":"SwiftUI exposes reserved regions through GeometryProxy's reservedRegions method, which returns divisions (like the active fold) and occlusions (like the inner camera). Each region provides a frame, margins, and an isActive state, letting custom canvases move or resize content around the fold instead of assuming a single continuous screen. Track new adaptive-layout APIs like this one on daily.dev while building for foldable and multi-display devices."}},{"@type":"Question","name":"How do I make a SwiftUI view respond to iPhone Duo hinge angle changes?","acceptedAnswer":{"@type":"Answer","text":"Use the onHingeChange modifier, available in iOS 27.1, which provides a hinge context including angle and status (such as partiallyOpen). This should drive optional visual enhancements, like scaling artwork based on fold angle, not core layout decisions, since the hinge angle's update frequency isn't precise enough for positioning essential interface elements. Developers experimenting with hinge-based interactions can keep up with SwiftUI API changes on daily.dev."}}]}
```

