You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: macOS/iOS: add option to disable or enable link previews when building a webview (#13090)
* macOS/iOS: add option to disable or enable link previews when building a webview (the webkit api has it enabled by default)
- `WebViewBuilderExtDarwin.allow_link_preview(allow_link_preview: bool)`
- `WebViewBuilder.allow_link_preview(allow_link_preview: bool)`
- `WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)`
* also call on iOS
* add api
* fix tests
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Copy file name to clipboardExpand all lines: crates/tauri-cli/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -545,6 +545,11 @@
545
545
"description": "Whether we should disable JavaScript code execution on the webview or not.",
546
546
"default": false,
547
547
"type": "boolean"
548
+
},
549
+
"allowLinkPreview": {
550
+
"description": "on macOS and iOS there is a link preview on long pressing links, this is enabled by default.\n see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview",
Copy file name to clipboardExpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -545,6 +545,11 @@
545
545
"description": "Whether we should disable JavaScript code execution on the webview or not.",
546
546
"default": false,
547
547
"type": "boolean"
548
+
},
549
+
"allowLinkPreview": {
550
+
"description": "on macOS and iOS there is a link preview on long pressing links, this is enabled by default.\n see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview",
0 commit comments