From d1b6d646dd650794bb28655450ad398a17d7c0f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 19 Nov 2025 12:53:21 +0000 Subject: [PATCH 1/2] Initial plan From d9487287bd339ee65a9d1a3b2a36e8a615a694f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 19 Nov 2025 13:00:04 +0000 Subject: [PATCH 2/2] Fix TabbedPage crash on iPadOS 26+ with narrow viewports Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> --- .../Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs b/src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs index 632e8e1a2461..6c6ad24224c0 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs @@ -65,7 +65,7 @@ protected TabbedPage Tabbed get { return (TabbedPage)Element; } } - public VisualElement Element => _viewHandlerWrapper.Element ?? _element?.GetTargetOrDefault(); + public VisualElement Element => _viewHandlerWrapper?.Element ?? _element?.GetTargetOrDefault(); public event EventHandler ElementChanged; @@ -132,6 +132,8 @@ public override void ViewDidLayoutSubviews() { base.ViewDidLayoutSubviews(); + // On iPadOS 26.1+, ViewDidLayoutSubviews can be called during UITabBarController construction + // in narrow viewports (< 667 points) before Element is set. Guard against this. if (Element is IView view) view.Arrange(View.Bounds.ToRectangle()); }