Skip to content

Commit

Permalink
feat(iOS): validate for device version
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Sep 2, 2024
1 parent f8c6ac7 commit 918f34b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ public partial class UnoWKWebView : WKWebView, INativeWebView, IWKScriptMessageH
}

#if __IOS__
Inspectable = FeatureConfiguration.WebView2.IsInspectable;
if (UIDevice.CurrentDevice.CheckSystemVersion(16, 4))
{
Inspectable = FeatureConfiguration.WebView2.IsInspectable;
}
#endif

Configuration.UserContentController.AddScriptMessageHandler(this, WebMessageHandlerName);
Expand Down

0 comments on commit 918f34b

Please sign in to comment.