Skip to content

[Bug]: “Designed for iPad” builds on M-series Macs don’t resize WKWebView (CAPBridgeViewController) #8177

@david-metrica

Description

@david-metrica

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
@capacitor/ios: 7.4.3

Installed Dependencies:

@capacitor/cli: 7.4.0
@capacitor/core: 7.4.2
@capacitor/ios: 7.4.2
@capacitor/android: 7.4.2

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When a Capacitor app is installed on an Apple Silicon Mac (M1/M2/M3) via the App Store as “Designed for iPad”, the app launches inside a Catalyst container window. On these Macs, resizing the window is allowed (if Requires Full Screen is unchecked), but the embedded WKWebView in CAPBridgeViewController does not resize with the window. This leaves large unused white areas instead of filling the available space.

Steps to Reproduce

  1. Build and publish a Capacitor iOS app to the App Store.
  2. On an M-series Mac, install the app as “Designed for iPad.”
  3. Resize the window.
  4. The native window changes size, but the web content stays fixed width.
Image

Expected Behavior

The WKWebView inside CAPBridgeViewController should always expand or shrink to fill the Catalyst window when resized, just like a native view controller would.

Project Reproduction

https://github.com/ionic-team/capacitor-starters

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions