ionic-team / ionic-team/capacitor

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

Open
#8,177 2 comments 2 reactions 0 assignees View on GitHub
needs reproduction
Dominant language
TypeScript
Stars
16.7k
Forks
1.3k
Avg merge
3d 15h
Merged PRs (30d)
10

Description

### 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

```Shell

```

### Platforms Affected

- [x] 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.