From 988f23285a28219dbb15d9fcac1f7dea5e4691e2 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:01:17 +0530 Subject: [PATCH 01/10] fix added --- src/Core/src/Platform/Windows/DatePickerExtensions.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Core/src/Platform/Windows/DatePickerExtensions.cs b/src/Core/src/Platform/Windows/DatePickerExtensions.cs index 839fc8d9a4af..3800866cfb6e 100644 --- a/src/Core/src/Platform/Windows/DatePickerExtensions.cs +++ b/src/Core/src/Platform/Windows/DatePickerExtensions.cs @@ -55,7 +55,15 @@ public static void UpdateMaximumDate(this CalendarDatePicker platformDatePicker, public static void UpdateCharacterSpacing(this CalendarDatePicker platformDatePicker, IDatePicker datePicker) { - platformDatePicker.CharacterSpacing = datePicker.CharacterSpacing.ToEm(); + var characterSpacing = datePicker.CharacterSpacing.ToEm(); + platformDatePicker.CharacterSpacing = characterSpacing; + + var dateTextBlock = platformDatePicker.GetDescendantByName("DateText"); + if (dateTextBlock is not null) + { + dateTextBlock.CharacterSpacing = characterSpacing; + dateTextBlock.RefreshThemeResources(); + } } public static void UpdateFont(this CalendarDatePicker platformDatePicker, IDatePicker datePicker, IFontManager fontManager) => From 2f979e50963c710e36aedabe75b1003258825401 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:02:12 +0530 Subject: [PATCH 02/10] Revert "fix added" This reverts commit 138797f06454b88d91cc6e868bace6e15a2101ed. --- src/Core/src/Platform/Windows/DatePickerExtensions.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Core/src/Platform/Windows/DatePickerExtensions.cs b/src/Core/src/Platform/Windows/DatePickerExtensions.cs index 3800866cfb6e..839fc8d9a4af 100644 --- a/src/Core/src/Platform/Windows/DatePickerExtensions.cs +++ b/src/Core/src/Platform/Windows/DatePickerExtensions.cs @@ -55,15 +55,7 @@ public static void UpdateMaximumDate(this CalendarDatePicker platformDatePicker, public static void UpdateCharacterSpacing(this CalendarDatePicker platformDatePicker, IDatePicker datePicker) { - var characterSpacing = datePicker.CharacterSpacing.ToEm(); - platformDatePicker.CharacterSpacing = characterSpacing; - - var dateTextBlock = platformDatePicker.GetDescendantByName("DateText"); - if (dateTextBlock is not null) - { - dateTextBlock.CharacterSpacing = characterSpacing; - dateTextBlock.RefreshThemeResources(); - } + platformDatePicker.CharacterSpacing = datePicker.CharacterSpacing.ToEm(); } public static void UpdateFont(this CalendarDatePicker platformDatePicker, IDatePicker datePicker, IFontManager fontManager) => From d07b886125b0ab7690fd9c422a06834f274b8f1c Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Mon, 14 Jul 2025 16:45:07 +0530 Subject: [PATCH 03/10] fix added --- .../HybridWebView/HybridWebViewHandler.cs | 2 +- .../HybridWebView/HybridWebViewHandler.iOS.cs | 22 +++++++++++++++++++ .../src/Handlers/WebView/WebViewHandler.cs | 1 + .../Handlers/WebView/WebViewHandler.iOS.cs | 21 ++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs index 0ed4846412ae..ed698a471999 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs @@ -83,7 +83,7 @@ public partial class HybridWebViewHandler : IHybridWebViewHandler public static IPropertyMapper Mapper = new PropertyMapper(ViewHandler.ViewMapper) { -#if WINDOWS +#if WINDOWS || IOS [nameof(IView.FlowDirection)] = MapFlowDirection, #endif }; diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index a3e47eef5278..27608d764f0e 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -77,6 +77,28 @@ internal static void EvaluateJavaScript(IHybridWebViewHandler handler, IHybridWe handler.PlatformView.EvaluateJavaScript(request); } + internal static void MapFlowDirection(IHybridWebViewHandler handler, IHybridWebView hybridWebView) + { + var scrollView = handler.PlatformView?.ScrollView; + if (scrollView == null) + return; + + scrollView.UpdateFlowDirection(hybridWebView); + + // On macOS, we need to refresh the scroll indicators when flow direction changes + if (OperatingSystem.IsMacCatalyst()) + { + bool showsVertical = scrollView.ShowsVerticalScrollIndicator; + bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; + + scrollView.ShowsVerticalScrollIndicator = false; + scrollView.ShowsHorizontalScrollIndicator = false; + + scrollView.ShowsVerticalScrollIndicator = showsVertical; + scrollView.ShowsHorizontalScrollIndicator = showsHorizontal; + } + } + public static void MapSendRawMessage(IHybridWebViewHandler handler, IHybridWebView hybridWebView, object? arg) { if (arg is not HybridWebViewRawMessage hybridWebViewRawMessage || handler.PlatformView is not IHybridPlatformWebView hybridPlatformWebView) diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.cs b/src/Core/src/Handlers/WebView/WebViewHandler.cs index b4dbad5fad5c..f78cb8ea4ec8 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.cs @@ -34,6 +34,7 @@ public partial class WebViewHandler : IWebViewHandler #elif __IOS__ [nameof(WKUIDelegate)] = MapWKUIDelegate, [nameof(IWebView.Background)] = MapBackground, + [nameof(IWebView.FlowDirection)] = MapFlowDirection, #endif }; diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs index 7d7b83f0a58f..2bbf37c68480 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs @@ -64,6 +64,27 @@ public static void MapGoForward(IWebViewHandler handler, IWebView webView, objec handler.PlatformView?.UpdateGoForward(webView); } + internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) + { + var scrollView = handler.PlatformView?.ScrollView; + if (scrollView == null) + return; + scrollView.UpdateFlowDirection(webView); + + // On macOS, we need to refresh the scroll indicators when flow direction changes + if (OperatingSystem.IsMacCatalyst()) + { + bool showsVertical = scrollView.ShowsVerticalScrollIndicator; + bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; + + scrollView.ShowsVerticalScrollIndicator = false; + scrollView.ShowsHorizontalScrollIndicator = false; + + scrollView.ShowsVerticalScrollIndicator = showsVertical; + scrollView.ShowsHorizontalScrollIndicator = showsHorizontal; + } + } + public static async void MapReload(IWebViewHandler handler, IWebView webView, object? arg) { var platformHandler = handler as WebViewHandler; From 3af09861052f2e739c129efa7dcbcb283398177d Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Tue, 15 Jul 2025 14:02:53 +0530 Subject: [PATCH 04/10] changes updated --- .../HybridWebView/HybridWebViewHandler.iOS.cs | 13 +++++++++++-- .../src/Handlers/WebView/WebViewHandler.iOS.cs | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index 27608d764f0e..dfd7d2f74bbf 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -18,6 +18,8 @@ public partial class HybridWebViewHandler : ViewHandler protected virtual float MinimumSize => 44f; + bool isInitialLoading = true; + WKUIDelegate? _delegate; protected override WKWebView CreatePlatformView() => @@ -72,10 +74,17 @@ internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) scrollView.UpdateFlowDirection(webView); // On macOS, we need to refresh the scroll indicators when flow direction changes - if (OperatingSystem.IsMacCatalyst()) + // But only for runtime changes, not during initial load + if (OperatingSystem.IsMacCatalyst() && handler is WebViewHandler platformHandler) { - bool showsVertical = scrollView.ShowsVerticalScrollIndicator; - bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; + if (platformHandler.isInitialLoading) + { + platformHandler.isInitialLoading = false; + return; + } + + var showsVertical = scrollView.ShowsVerticalScrollIndicator; + var showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; scrollView.ShowsVerticalScrollIndicator = false; scrollView.ShowsHorizontalScrollIndicator = false; From 6ed6a15a3eeca01841326b53b0e914236c045e43 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Tue, 15 Jul 2025 18:57:23 +0530 Subject: [PATCH 05/10] fix updated --- .../Handlers/HybridWebView/HybridWebViewHandler.iOS.cs | 10 +--------- src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index dfd7d2f74bbf..50cd8189f3ab 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -18,8 +18,6 @@ public partial class HybridWebViewHandler : ViewHandler protected virtual float MinimumSize => 44f; - bool isInitialLoading = true; - WKUIDelegate? _delegate; protected override WKWebView CreatePlatformView() => @@ -75,14 +73,8 @@ internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) // On macOS, we need to refresh the scroll indicators when flow direction changes // But only for runtime changes, not during initial load - if (OperatingSystem.IsMacCatalyst() && handler is WebViewHandler platformHandler) + if (OperatingSystem.IsMacCatalyst() && handler.PlatformView != null && handler.PlatformView.IsLoaded()) { - if (platformHandler.isInitialLoading) - { - platformHandler.isInitialLoading = false; - return; - } - var showsVertical = scrollView.ShowsVerticalScrollIndicator; var showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; From 22147c20b7cddaab8deb2b1eaa90b928067dcde4 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Tue, 15 Jul 2025 19:00:26 +0530 Subject: [PATCH 06/10] fix updated --- src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs | 2 +- src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index 50cd8189f3ab..1d242c215dcf 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -87,7 +87,7 @@ internal static void MapFlowDirection(IHybridWebViewHandler handler, IHybridWebV // On macOS, we need to refresh the scroll indicators when flow direction changes // But only for runtime changes, not during initial load - if (OperatingSystem.IsMacCatalyst() && handler.PlatformView != null && handler.PlatformView.IsLoaded()) + if (OperatingSystem.IsMacCatalyst() && hybridWebView.IsLoadedOnPlatform()) { bool showsVertical = scrollView.ShowsVerticalScrollIndicator; bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs index 1da620f76e83..5e7a0431d2c1 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs @@ -73,7 +73,7 @@ internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) // On macOS, we need to refresh the scroll indicators when flow direction changes // But only for runtime changes, not during initial load - if (OperatingSystem.IsMacCatalyst() && handler.PlatformView != null && handler.PlatformView.IsLoaded()) + if (OperatingSystem.IsMacCatalyst() && webView.IsLoadedOnPlatform()) { var showsVertical = scrollView.ShowsVerticalScrollIndicator; var showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; From 01094a2e2d1070dae87a4cc9352b996fde546fe7 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Wed, 16 Jul 2025 15:30:23 +0530 Subject: [PATCH 07/10] moved into extension class --- .../HybridWebView/HybridWebViewHandler.iOS.cs | 16 +--------------- .../Handlers/WebView/WebViewHandler.iOS.cs | 17 ++--------------- .../src/Platform/iOS/WebViewExtensions.cs | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 30 deletions(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index 1d242c215dcf..641ab385d590 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -83,21 +83,7 @@ internal static void MapFlowDirection(IHybridWebViewHandler handler, IHybridWebV if (scrollView == null) return; - scrollView.UpdateFlowDirection(hybridWebView); - - // On macOS, we need to refresh the scroll indicators when flow direction changes - // But only for runtime changes, not during initial load - if (OperatingSystem.IsMacCatalyst() && hybridWebView.IsLoadedOnPlatform()) - { - bool showsVertical = scrollView.ShowsVerticalScrollIndicator; - bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; - - scrollView.ShowsVerticalScrollIndicator = false; - scrollView.ShowsHorizontalScrollIndicator = false; - - scrollView.ShowsVerticalScrollIndicator = showsVertical; - scrollView.ShowsHorizontalScrollIndicator = showsHorizontal; - } + scrollView.UpdateFlowDirectionForScrollView(hybridWebView); } public static void MapSendRawMessage(IHybridWebViewHandler handler, IHybridWebView hybridWebView, object? arg) diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs index 5e7a0431d2c1..1c281f413270 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs @@ -69,21 +69,8 @@ internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) var scrollView = handler.PlatformView?.ScrollView; if (scrollView == null) return; - scrollView.UpdateFlowDirection(webView); - - // On macOS, we need to refresh the scroll indicators when flow direction changes - // But only for runtime changes, not during initial load - if (OperatingSystem.IsMacCatalyst() && webView.IsLoadedOnPlatform()) - { - var showsVertical = scrollView.ShowsVerticalScrollIndicator; - var showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; - - scrollView.ShowsVerticalScrollIndicator = false; - scrollView.ShowsHorizontalScrollIndicator = false; - - scrollView.ShowsVerticalScrollIndicator = showsVertical; - scrollView.ShowsHorizontalScrollIndicator = showsHorizontal; - } + + scrollView.UpdateFlowDirectionForScrollView(webView); } public static async void MapReload(IWebViewHandler handler, IWebView webView, object? arg) diff --git a/src/Core/src/Platform/iOS/WebViewExtensions.cs b/src/Core/src/Platform/iOS/WebViewExtensions.cs index 4a16dd083600..aac7ab69dd43 100644 --- a/src/Core/src/Platform/iOS/WebViewExtensions.cs +++ b/src/Core/src/Platform/iOS/WebViewExtensions.cs @@ -64,6 +64,25 @@ internal static void UpdateCanGoBackForward(this WKWebView platformWebView, IWeb webView.CanGoForward = platformWebView.CanGoForward; } + internal static void UpdateFlowDirectionForScrollView(this UIKit.UIScrollView scrollView, IView view) + { + scrollView.UpdateFlowDirection(view); + + // On macOS, we need to refresh the scroll indicators when flow direction changes + // But only for runtime changes, not during initial load + if (OperatingSystem.IsMacCatalyst() && view.IsLoadedOnPlatform()) + { + bool showsVertical = scrollView.ShowsVerticalScrollIndicator; + bool showsHorizontal = scrollView.ShowsHorizontalScrollIndicator; + + scrollView.ShowsVerticalScrollIndicator = false; + scrollView.ShowsHorizontalScrollIndicator = false; + + scrollView.ShowsVerticalScrollIndicator = showsVertical; + scrollView.ShowsHorizontalScrollIndicator = showsHorizontal; + } + } + public static void Eval(this WKWebView platformWebView, IWebView webView, string script) { platformWebView.EvaluateJavaScriptAsync(script); From 36198881b857b04ef8ba78aa04959e62ff2780a5 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Wed, 29 Oct 2025 14:19:56 +0530 Subject: [PATCH 08/10] handler changes added --- src/Core/src/Handlers/WebView/WebViewHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.cs b/src/Core/src/Handlers/WebView/WebViewHandler.cs index f78cb8ea4ec8..ec2b2bb456f0 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.cs @@ -31,10 +31,11 @@ public partial class WebViewHandler : IWebViewHandler [nameof(WebViewClient)] = MapWebViewClient, [nameof(WebChromeClient)] = MapWebChromeClient, [nameof(WebView.Settings)] = MapWebViewSettings +#elif __IOS__ || MACCATALYST + [nameof(IWebView.FlowDirection)] = MapFlowDirection, #elif __IOS__ [nameof(WKUIDelegate)] = MapWKUIDelegate, [nameof(IWebView.Background)] = MapBackground, - [nameof(IWebView.FlowDirection)] = MapFlowDirection, #endif }; From d620b08499f0efa420d4f7e7f41bec136273ede0 Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:48:18 +0530 Subject: [PATCH 09/10] Update WebViewExtensions.cs --- src/Core/src/Platform/iOS/WebViewExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/src/Platform/iOS/WebViewExtensions.cs b/src/Core/src/Platform/iOS/WebViewExtensions.cs index aac7ab69dd43..1975044d329a 100644 --- a/src/Core/src/Platform/iOS/WebViewExtensions.cs +++ b/src/Core/src/Platform/iOS/WebViewExtensions.cs @@ -70,6 +70,10 @@ internal static void UpdateFlowDirectionForScrollView(this UIKit.UIScrollView sc // On macOS, we need to refresh the scroll indicators when flow direction changes // But only for runtime changes, not during initial load + // The view.IsLoadedOnPlatform() check ensures that this code is executed + // only after the view has been loaded on the platform. During the initial load, + // the scroll indicators do not need to be refreshed as they are set up correctly + // by default. This avoids unnecessary operations during the initial load phase. if (OperatingSystem.IsMacCatalyst() && view.IsLoadedOnPlatform()) { bool showsVertical = scrollView.ShowsVerticalScrollIndicator; From e0ad7c66e6829f6c453970fde6007ca9918a85bc Mon Sep 17 00:00:00 2001 From: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:48:35 +0530 Subject: [PATCH 10/10] AI review summary addressed --- src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs | 2 +- src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs | 2 +- src/Core/src/Handlers/WebView/WebViewHandler.cs | 1 - src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs index ed698a471999..652164ccf494 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.cs @@ -83,7 +83,7 @@ public partial class HybridWebViewHandler : IHybridWebViewHandler public static IPropertyMapper Mapper = new PropertyMapper(ViewHandler.ViewMapper) { -#if WINDOWS || IOS +#if WINDOWS || IOS || MACCATALYST [nameof(IView.FlowDirection)] = MapFlowDirection, #endif }; diff --git a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs index 641ab385d590..148720ee070f 100644 --- a/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.iOS.cs @@ -82,7 +82,7 @@ internal static void MapFlowDirection(IHybridWebViewHandler handler, IHybridWebV var scrollView = handler.PlatformView?.ScrollView; if (scrollView == null) return; - + scrollView.UpdateFlowDirectionForScrollView(hybridWebView); } diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.cs b/src/Core/src/Handlers/WebView/WebViewHandler.cs index ec2b2bb456f0..7d1fe994ee17 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.cs @@ -33,7 +33,6 @@ public partial class WebViewHandler : IWebViewHandler [nameof(WebView.Settings)] = MapWebViewSettings #elif __IOS__ || MACCATALYST [nameof(IWebView.FlowDirection)] = MapFlowDirection, -#elif __IOS__ [nameof(WKUIDelegate)] = MapWKUIDelegate, [nameof(IWebView.Background)] = MapBackground, #endif diff --git a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs index 1c281f413270..856b247a723e 100644 --- a/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs +++ b/src/Core/src/Handlers/WebView/WebViewHandler.iOS.cs @@ -69,7 +69,7 @@ internal static void MapFlowDirection(IWebViewHandler handler, IWebView webView) var scrollView = handler.PlatformView?.ScrollView; if (scrollView == null) return; - + scrollView.UpdateFlowDirectionForScrollView(webView); }