WebviewOptions
Properties
Whether clicking an inactive webview also clicks through to the webview on macOS.
on macOS and iOS there is a link preview on long pressing links, this is enabled by default. see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview
Set the window and webview background color.
Change the default background throttling behaviour.
Set a custom path for the webview's data directory (localStorage, cache, etc.) relative to `appDataDir()`/${label}. For security reasons, paths outside of that location can only be configured on the Rust side.
Initialize the WebView with a custom data store identifier. This can be seen as a replacement for dataDirectory which is unavailable in WKWebView. See https://developer.apple.com/documentation/webkit/wkwebsitedatastore/init(foridentifier:)?language=objc
Allows disabling the input accessory view on iOS.
Whether the drag and drop is enabled or not on the webview. By default it is enabled.
Whether we should disable JavaScript code execution on the webview or not.
Specifies the native scrollbar style to use with the webview. CSS styles that modify the scrollbar are applied on top of the native appearance configured here.
Whether the webview is transparent or not. Note that on macOS this requires the macos-private-api feature flag, enabled under tauri.conf.json > app > macOSPrivateApi. WARNING: Using private APIs on macOS prevents your application from being accepted to the App Store.
Sets whether the custom protocols should use https://<scheme>.localhost instead of the default http://<scheme>.localhost on Windows and Android. Defaults to false.
Whether page zooming by hotkeys is enabled