
Same Duo thing. The Mac has a real hinge with a sensor in it, so I pointed the iPhone effect at the actual lid.
See it run
How it works
- It reads the hinge angle 120 times a second, off the same sensor macOS uses.
- It captures the desktop live and folds it on the GPU.
- Same glass maths as FrostFold, hinge moved to the bottom edge.
The prompt
Take the fold interaction I built for iOS and put it on the Mac, driven by the real lid angle instead of device tilt.
Most of the work was finding a hinge angle fast enough to animate from.
Built with
SwiftMetalScreenCaptureKitIOKit HID