← ClaudeAtlas

iphone-duo-displayslisted

Use iPhone Duo's hinge, two displays, two front cameras and multiple windows in SwiftUI and UIKit apps. Use when a developer asks about the hinge angle or fold state, onHingeChange or UIHingeInteraction, interactions driven by folding, Split View multitasking or the stacked video layout on iPhone Duo, multiple scenes or windows on iPhone, requestSceneSessionActivation errors on the outer display, UIWindowSceneActivationAction, scene accessories, sceneAccessory, CameraCaptureAccessory, a teleprompter or subject preview on the outer display, the virtual front camera, AVCaptureDeviceDirectionCoordinator and cameras that change direction when the device opens or closes, preview mirroring, or a widget so the app appears in StandBy on the outer display. Based on Apple's "Leverage multiple displays and scenes" and "Build a great camera experience for iPhone Duo". Not for column widths, safe areas or content around the fold (layout) or toolbar items (bars).
Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill · ★ 0 · AI & Automation · score 67
Install: claude install-skill Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill
# iPhone Duo displays, hinge, scenes and cameras Code: `references/displays-code.md`. Availability: `references/api-availability.md` — the hinge APIs, `CameraCaptureAccessory`, the direction coordinator and the physical front camera types need the **iOS 27.1 SDK**, which ships with Xcode 27.1; `sceneAccessory`, `onAvailabilityChange`, `UISceneAccessory` and `UIWindowScene.ActivationAction` exist earlier. The hinge reaches you only through `UIHingeInteraction` / `onHingeChange`: there is no trait, no notification and no `UIDevice` property. StandBy cannot be verified in the iPhone Duo simulator (Xcode 27.1 known issues 187708663, 187708767). Which half carries the outer display and the inner camera, how each pose faces, and what each camera can do: `references/device-geometry.md`. ## Hinge (Tech Talk 111464, 0:49–2:35) - SwiftUI `onHingeChange { previous, context in … }`; UIKit `UIHingeInteraction { _, update in … }` added to a view with `addInteraction`. - Reports a status — closed, partially open, fully open (UIKit also `unknown`) — and a continuous angle (`UIHinge.angle` is in radians; the SwiftUI sample uses `Angle`). - `context.hinge == nil` (UIKit: `update.hinge == nil`) means the device has no hinge or the view left a hierarchy that provides hinge updates: every hinge feature must degrade to nothing on other devices. `UIHingeInteraction.isEnabled` pauses updates. - Filter for `.partiallyOpen` when reading the angle, and **reset in the else branch** so the e