Skip to content

Commit f8c6ac7

Browse files
committed
feat(ios): add webview2 inspectable feature
1 parent 15ed6af commit f8c6ac7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#if !__MACOS__ && !__MACCATALYST__ // catalyst https://github.com/xamarin/xamarin-macios/issues/13935
2121
using MessageUI;
22+
using Uno.UI;
23+
2224
#endif
2325

2426
#if __IOS__
@@ -65,6 +67,10 @@ public partial class UnoWKWebView : WKWebView, INativeWebView, IWKScriptMessageH
6567
}
6668
}
6769

70+
#if __IOS__
71+
Inspectable = FeatureConfiguration.WebView2.IsInspectable;
72+
#endif
73+
6874
Configuration.UserContentController.AddScriptMessageHandler(this, WebMessageHandlerName);
6975

7076
// Set strings with fallback to default English

0 commit comments

Comments
 (0)