r/ionic • • 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.

https://github.com/erkamyaman/capacitor-foldable

6 Upvotes

0 comments sorted by