<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g" -->

---
title: A riff on new hinge APIs for iPhone Duo | daily.dev
description: A developer demos an app for a new foldable iPhone form factor (iPhone Duo) that uses a playable guitar interface. The app leverages a new SwiftUI...
canonical: https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A riff on new hinge APIs for iPhone Duo | daily.dev
og:description: A developer demos an app for a new foldable iPhone form factor (iPhone Duo) that uses a playable guitar interface. The app leverages a new SwiftUI...
og:url: https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g
og:image: https://api.daily.dev/og/posts/1zCRpiE9G.png
og:image:alt: A riff on new hinge APIs for iPhone Duo
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.

# A riff on new hinge APIs for iPhone Duo

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

## Summary

A developer demos an app for a new foldable iPhone form factor (iPhone Duo) that uses a playable guitar interface. The app leverages a new SwiftUI onHingeChange modifier and UIKit's UIHingeInteraction API, which provide continuous updates of the hinge angle, enabling more expressive, physically responsive interactions like an air guitar simulator.

## Full article

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

## Questions this post answers

### How do I get continuous hinge angle updates on a foldable iPhone in SwiftUI?

Use the new onHingeChange modifier in SwiftUI, which delivers continuous updates of the hinge angle as the device folds. UIKit offers an equivalent through UIHingeInteraction. Together these APIs let apps react in real time to the physical fold angle, enabling interactions like a playable guitar app that responds to hinge movement.

_Developers building for foldable iPhones can track new hinge API changes on daily.dev._

## Similar posts on daily.dev

- [Driving SwiftUI animations with the hinge angle on iPhone Duo](https://daily.dev/posts/driving-swiftui-animations-with-the-hinge-angle-on-iphone-duo-jw8nqzgtf) · Nil Coalescing · 0 upvotes · 0 comments
- [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

---

Tags: [#mobile](https://daily.dev/tags/mobile), [#ios](https://daily.dev/tags/ios), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g)

```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":"A riff on new hinge APIs for iPhone Duo","url":"https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g"},"datePublished":"2026-09-10T00:39:28.492Z","dateModified":"2026-09-10T01:53:03.387Z","description":"A developer demos an app for a new foldable iPhone form factor (iPhone Duo) that uses a playable guitar interface. The app leverages a new SwiftUI...","image":"https://i.ytimg.com/vi/IbRvqX65C-0/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/IbRvqX65C-0/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/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mobile,ios,swiftui","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"A riff on new hinge APIs for iPhone Duo","description":"A developer demos an app for a new foldable iPhone form factor (iPhone Duo) that uses a playable guitar interface. The app leverages a new SwiftUI...","thumbnailUrl":"https://i.ytimg.com/vi/IbRvqX65C-0/sddefault.jpg","uploadDate":"2026-09-10T00:39:28.492Z","duration":"PT1M","url":"https://api.daily.dev/r/1zCRpiE9G","embedUrl":"https://www.youtube.com/embed/IbRvqX65C-0"}}
{"@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":"A riff on new hinge APIs for iPhone Duo"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-riff-on-new-hinge-apis-for-iphone-duo-1zcrpie9g#faq","mainEntity":[{"@type":"Question","name":"How do I get continuous hinge angle updates on a foldable iPhone in SwiftUI?","acceptedAnswer":{"@type":"Answer","text":"Use the new onHingeChange modifier in SwiftUI, which delivers continuous updates of the hinge angle as the device folds. UIKit offers an equivalent through UIHingeInteraction. Together these APIs let apps react in real time to the physical fold angle, enabling interactions like a playable guitar app that responds to hinge movement. Developers building for foldable iPhones can track new hinge API changes on daily.dev."}}]}
```

