iphone-duo-hinge-and-scenes
Installation
SKILL.md
Hinge, multitasking and scenes
Three capabilities that are unique to iPhone Duo, in rising order of ambition: reacting to the hinge, participating in Split View, and putting your own UI on both displays at once.
The hinge
The system itself responds to the hinge — the wallpaper reacts to the angle with a zoom effect as the device opens. Apps can read the same signal.
Use the onHingeChange modifier in SwiftUI, or UIHingeInteraction in UIKit.
Both give you:
- a coarse status — closed, partially open, fully open
- a continuous angle, updated live
onHingeChange hands your closure the previous and current hinge context.