allowsBackForwardNavigationGestures property
Set to true to allow the horizontal swipe gestures trigger back-forward list navigations.
NOTE for Windows: Swiping down to refresh is off by default and not exposed via API currently,
it requires the "--pull-to-refresh" option to be included in
the additional browser arguments to be configured.
(See WebViewEnvironmentSettings.additionalBrowserArguments.).
When set to false, the end user cannot swipe to navigate or pull to refresh.
This API only affects the overscrolling navigation functionality and has
no effect on the scrolling interaction used to explore the web content shown in WebView2.
Disabling/Enabling allowsBackForwardNavigationGestures takes effect after the next navigation.
The default value is true.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKWebView.allowsBackForwardNavigationGestures)
- macOS WKWebView (Official API - WKWebView.allowsBackForwardNavigationGestures)
- Windows WebView2 1.0.992.28+ (Official API - ICoreWebView2Settings6.put_IsSwipeNavigationEnabled)
Implementation
bool? allowsBackForwardNavigationGestures;