capacitor-foldable

Installation
SKILL.md

Capacitor Foldable

Guidance for @erkamyaman/capacitor-foldable, which reports the fold to a Capacitor web view: where the crease is, the hinge angle, the posture, and which display the app is on.

This skill is new. Everything in it was checked against the plugin source and measured on the iPhone Duo simulator, but it has not been through much real use yet, so report anything that misleads you.

Install

npm install @erkamyaman/capacitor-foldable
npx cap sync

Capacitor 8 uses the current major. If you are on Capacitor 7 and building with Xcode 27, upgrade to 8.5 or later before anything else: those apps crash at launch, because iOS 27 needs the scene lifecycle that only 8.5 adopted, and a crash on launch is an automatic App Review rejection. Capacitor 7 apps can install @erkamyaman/capacitor-foldable@7 and build with Xcode 26, which reports the fold on Android and size classes everywhere but has no iPhone Duo support. That route closes when Apple requires the iOS 27 SDK in April 2027. The 7.x line also predates the --fold-* variables (8.1.0) and the Ionic tab stylesheets, so the CSS below needs Capacitor 8.

Start here: CSS before JavaScript

Install the polyfill once at startup, then lay out with CSS. Most foldable work needs no JavaScript at all.

Installs
1
GitHub Stars
2
First Seen
3 days ago