Bug 247084 - [iOS] WKWebView's back gesture doesn't work with Stage Manager
Summary: [iOS] WKWebView's back gesture doesn't work with Stage Manager
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-26 13:39 PDT by Ali Juma
Modified: 2022-10-26 17:09 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Juma 2022-10-26 13:39:27 PDT
With Stage Manager enabled in iOS 16.1, WKWebView's back swipe gesture (the gesture that you get by setting WKWebView.allowsBackForwardNavigationGestures to YES) doesn't work, since swiping from the left edge brings up the Stage Manager UI instead.

This does work in Safari though, where swiping from the left edge shows the previous page and also exposes an arrow-like UI element for triggering Stage Manager's UI.
Comment 1 Tim Horton 2022-10-26 17:09:12 PDT
Apps can get the double-swipe behavior by adopting `preferredScreenEdgesDeferringSystemGestures` on UIViewController.