Apple has introduced specific APIs for the iPhone Duo that allow developers to integrate the device's folding hinge mechanism directly into their applications. According to Apple software chief Craig Federighi, these tools enable software to respond to the physical state of the hardware, ranging from high-level device positioning to precise mechanical data.
Granular Control and Device Pose
Developers can access the iPhone Duo's hinge data through two primary approaches. The system exposes the device's “pose”—such as book, on-table, or tent configurations—as a high-level abstraction, allowing apps to automatically adjust their layouts without requiring complex calculations. For developers seeking more specialized interactions, Apple also provides raw hinge-angle data with an accuracy of approximately five degrees, enabling the creation of unique, responsive animations and custom interfaces that react to the user’s physical interaction with the device.
Integrating with Existing Frameworks
Apple is leveraging its established development ecosystem, specifically UIKit and SwiftUI, to simplify the transition for existing apps. Federighi noted that the platform utilizes high-level constructs that allow many applications to adapt to the folding form factor with minimal intervention. These frameworks abstract away common layout challenges, ensuring that software can maintain visual continuity between the outer and inner screens. Furthermore, Apple is incorporating support for agentic coding tools to assist developers in automating the adaptation of legacy apps to the new hardware capabilities.
AI-generated editorial illustration; not a documentary photograph.
Source: Craig Federighi on how Apple helps developers make the most of the iPhone Duo [Video]

Leave a Reply