WebView Exit fullscreen issue on iPadOS

This demonstrates an issue with SwiftUI's WebView on iPadOS.

To repro, testing on iPad Simulator OS 26.2, macOS 26.2, Xcode 26.2.

  1. Download and unzip this project: https://drive.google.com/file/d/1z3MobjDf_RvvOtriXtinXvrJ7rGHwZRs/view?usp=share_link

  2. Set up Signing and Run the swiftui-webview App target on simulator (I'm using iPad Pro 13-inch (M5 simulator)

  3. Tap/click the fullscreen [ ] button in the bottom left corner of the webpage.

  4. Tap/click the 'X' button in the top left, to exit fullscreen.

Result: The WebView exits fullscreen, but there is no content loaded, just a white background. It's also now not possible to visit other URLs - the WebView appears to be unresponsive and not repaint.

This does not appear to affect macOS 26.2, just iPadOS.

Here is a video to demonstrate the issue: https://www.youtube.com/watch?v=VYuAFcCCnRE

WebView Exit fullscreen issue on iPadOS
 
 
Q