From 918f34b66522820123e003f3e72019dbd16ef1cd Mon Sep 17 00:00:00 2001 From: Andres Pineda Date: Thu, 29 Aug 2024 17:44:07 -0400 Subject: [PATCH] feat(iOS): validate for device version --- .../WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs b/src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs index 61d29196a7b9..faf405bfc786 100644 --- a/src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs +++ b/src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOSmacOS.cs @@ -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);