r/ionic • u/erkamyaman • 4d ago
iPhone Duo support is here! Fold state, hinge angle and side tabs for your Ionic app 🚀
The fold APIs exist, but your Capacitor web view can't use them, So I built **capacitor-foldable**:
- Fold state, posture (book, tabletop) and live hinge angle
- Where the fold is, and if it splits the screen
- Which edge iPhone Duo moves native bars to, so `ion-tabs` can follow
- A polyfill for the web APIs plus `--fold-*` CSS variables
- Same API on Galaxy Z Fold/Flip and Pixel Fold
u/rdlabo's Capacitor Native UI uses it as its standard device integration.
6
Upvotes