/capacitor-ui:capacitor-ios-resizabilityfrom capacitor-ui
Audits and fixes Capacitor iOS apps for resizable windows (iPad Split View, Stage Manager, foldable iPhone). Checks web layer viewport/100vh/screen.width and native code for UIScreen.main/interfaceOrientation, then applies trait- and scene-based replacements.
Ships in capacitor-ui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A Capacitor app is a full-window WKWebView in CAPBridgeViewController. The web view follows its window. The work is to make the web layout respond to width changes, and to remove native code (app, custom code, plugins) that assumes one full-screen window.
TRIGGER when:
UIRequiresFullScreen, missing iPad orientations, or launch screen requirementsUIScreen.main, userInterfaceIdiom, interfaceOrientation or AppDelegate lifecycle useDo not use:
env(safe-area-inset-*) setup and notch padding only: safe-area-handlingcapacitor-uiscene-migration (prerequisite for Xcode 27)capacitor-keyboardtailwind-capacitorUIRequiresFullScreen and resizes the scene anyway (TN3192). Never delete the key silently: deleting it makes the app resizable at once on current iOS. Never add UIRequiresFullScreenIgnoredStartingWithVersion on your own: its value decides which releases keep the old behavior. Both are the user's call, after testing.ITMS-90870. Capacitor templates set UILaunchStoryboardName; keep it.SceneDelegate.swift. Without it, AppDelegate lifecycle methods are the only signal, which is wrong in multi-window. Run capacitor-uiscene-migration first if UIApplicationSceneManifest is missing.UIApplicationSupportsMultipleScenes = false. Each scene would create its own CAPBridgeViewController, with a second WebView and plugin set. Capacitor added scene-scoped notifications in 8.5 so plugins can prepare, but multi-window is not supported in the templates. Resizing works with a single scene.CAPBridgeViewController builds supportedInterfaceOrientations from the iPhone key UISupportedInterfaceOrientations only, not from UISupportedInterfaceOrientations~ipad (Capacitor 8.5 source). An iPad that declares all four orientations can still be locked by the bridge mask. Report it; override supportedInterfaceOrientations in a bridge subclass only if the user wants different iPad behavior.WKWebView resizes with the window and fires resize. Breakage comes from layout code that reads the device instead of the viewport.node_modules are lost on install. Report plugin findings, upgrade the plugin, open an issue upstream, or use patch-package only as a stopgap, with user approval.Only load a reference when its topic is in play.
| File | Load when |
|---|---|
| references/info-plist-and-scenes.md | Checking Info.plist keys, orientation masks, scene lifecycle and the AppDelegate methods that stop firing |
| references/web-layer.md | Auditing and fixing CSS/JS layout: viewport, units, device sniffing, safe areas that change at runtime |
| references/native-replacements.md | Replacing UIScreen.main, orientation, idiom, key window, lifecycle and hard-coded insets in Swift/ObjC |
| references/plugin-audit.md | Scanning plugins in node_modules, triage, and what plugin authors should change |
| references/swiftui-in-plugins.md | A plugin or app presents native SwiftUI screens that must resize; iOS 27 SDK SwiftUI changes |
Script: scripts/scan-legacy-apis.sh scans ios/App/App and every node_modules/**/ios folder and prints the resize-related Info.plist keys. Read-only.
Read ios/App/App/Info.plist, AppDelegate.swift, SceneDelegate.swift, the @capacitor/ios version, and the TARGETED_DEVICE_FAMILY build setting (1,2 = iPhone and iPad). Report:
| Check | OK when | Otherwise |
|---|---|---|
| Launch screen | UILaunchStoryboardName or UILaunchScreen present | Report ITMS-90870 risk |
| Scene lifecycle | UIApplicationSceneManifest present, SceneDelegate.swift in the target | Send to capacitor-uiscene-migration first |
| iPad orientations | UISupportedInterfaceOrientations~ipad lists all four, or no iPad key | Name the missing ones. Mention the bridge mask fact above |
| Full-screen opt-out | UIRequiresFullScreen absent | Report that iOS 27 ignores it. Ask the user before changing it |
bash <skill>/scripts/scan-legacy-apis.sh .
Also scan the web code (references/web-layer.md):
grep -rnE 'screen\.(width|height|availWidth)|window\.orientation|orientationchange|\b100vh\b|navigator\.userAgent.*(iPad|iPhone)|isPlatform\(.(ipad|tablet|iphone)|innerWidth' src --include='*.{ts,tsx,js,jsx,vue,svelte,css,scss}'
Make a TODO list with one entry per file. Large projects: process files in batches of 3 to 5. Every file in the list gets a change or a written reason for no change.
Group the findings into: app web code, app native code, plugins (by package), Info.plist. For each, state the fix. Ask the user before:
UIRequiresFullScreen, orientation keys or the orientation mask,node_modules.if/else branch and #available guard. Never replace a dynamic value with a literal, and never replace one global (UIScreen.main) with another (UIApplication.shared, UITraitCollection.current, UIDevice.current).applicationDidBecomeActive and friends with only comments) are harmless. Move them only if they contain code.npx cap sync ios
xcrun simctl list devices available | grep -i ipad
npx cap run ios --target <iPad-simulator-UDID>
pause / resume must fire.| Symptom | Cause | Fix |
|---|---|---|
| Layout stuck at the old size after resize | JS cached window.innerWidth / screen.width at startup, or CSS uses 100vh | Read sizes on resize or use CSS; replace 100vh with 100dvh |
| Content under the status bar or home indicator only in some window sizes | Safe-area insets were read once, or a side inset was mirrored to both sides | Use env(safe-area-inset-*) per edge in CSS; never cache them in JS |
| Plugin overlay covers the wrong area in split view | Plugin sizes its view from UIScreen.main.bounds | Update the plugin, or report upstream with the scan line |
| App launches but is not resizable on iOS 26 | UIRequiresFullScreen = true | Expected until the user removes it after testing |
Upload rejected with ITMS-90870 | No launch screen key | Restore UILaunchStoryboardName with LaunchScreen.storyboard |
pause / resume stop firing after adding SceneDelegate | Custom code in AppDelegate lifecycle methods | Move it to scene methods or observe notifications (references/info-plist-and-scenes.md) |
safe-area-handling: CSS env() variables and the status bar overlaycapacitor-uiscene-migration: SceneDelegate adoption, the prerequisite for scene-aware fixestailwind-capacitor: responsive breakpoints in Tailwindcapacitor-testing: simulator and device verification loopcapacitor-plugin-upgrade-v8-to-v9: when a plugin fix needs a new major versionmetadata.json (opens in a new tab)references/info-plist-and-scenes.md (opens in a new tab)references/native-replacements.md (opens in a new tab)references/plugin-audit.md (opens in a new tab)references/swiftui-in-plugins.md (opens in a new tab)references/web-layer.md (opens in a new tab)scripts/scan-legacy-apis.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor, ios, ipad-multitasking, resizable-windows, stage-manager, split-view
5 skills in this plugin
/ionic-designBuilds and reviews Ionic Framework UI in Capacitor apps (Ionic 9 current, Ionic 8 still common) - page structure (`ion-header`/`ion-content`/`ion-footer`), lists, modern form syntax (`label`/`labelPlacement` on `ion-input`/`ion-select`), sheet modals, tabs + `ion-router-outlet`, CSS variable theming, dark palettes (`palettes/dark.system.css`, `.ion-palette-dark`), iOS vs MD mode, and Ionic 8 -> 9 breaking changes (React Router 6, Vue Router 5, Angular 18-22 zoneless, removed `ion-picker-legacy`, boolean `autocorrect`, `npx @ionic/migrate`). Use when writing Ionic components, theming an Ionic app, fixing platform-mode styling, or upgrading @ionic/react, @ionic/vue, @ionic/angular. Do not use for Konsta UI (konsta-ui), Tailwind setup (tailwind-capacitor), raw safe-area CSS (safe-area-handling), keyboard resize (capacitor-keyboard), or Ionic Appflow/Enterprise migrations (ionic-appflow-migration, ionic-enterprise-sdk-migration)./konsta-uiBuilds Capacitor app UI with Konsta UI v5 (Tailwind CSS v4-based iOS and Material components for React 19, Vue 3, Svelte 5) - CSS-first setup (`@import 'tailwindcss'; @import 'konsta/react/theme.css';`), `--color-brand-*` colors in `@theme`, `<App theme="ios|material|parent" safeAreas dark>`, `KonstaProvider` when mixing with Ionic, `ios:`/`material:` variants, `pt-safe`/`no-safe-areas` utilities, `k-md-vibrant`/`k-md-monochrome`, and migrating from Konsta v3/v4 `konstaConfig` in `tailwind.config.js`. Use when installing or upgrading Konsta, components render unstyled, theme or dark mode does not switch, or Navbar/Tabbar overlap system bars. Do not use for Ionic components (ionic-design), plain Tailwind setup without Konsta (tailwind-capacitor), or native safe-area/edge-to-edge config (safe-area-handling).npx claudepluginhub cap-go/capgo-skills --plugin capacitor-uiOther plugins' skills for the same job