Skip to content

Commit

Permalink
feat(ios): add webview2 inspectable feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Sep 2, 2024
1 parent 15ed6af commit f8c6ac7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#if !__MACOS__ && !__MACCATALYST__ // catalyst https://github.com/xamarin/xamarin-macios/issues/13935
using MessageUI;
using Uno.UI;

#endif

#if __IOS__
Expand Down Expand Up @@ -65,6 +67,10 @@ public partial class UnoWKWebView : WKWebView, INativeWebView, IWKScriptMessageH
}
}

#if __IOS__
Inspectable = FeatureConfiguration.WebView2.IsInspectable;
#endif

Configuration.UserContentController.AddScriptMessageHandler(this, WebMessageHandlerName);

// Set strings with fallback to default English
Expand Down

0 comments on commit f8c6ac7

Please sign in to comment.