From a7e2fe77e404fb0ebef3be70fed807e1f8370cb5 Mon Sep 17 00:00:00 2001 From: Shalini-Ashokan <102292178+Shalini-Ashokan@users.noreply.github.com> Date: Thu, 7 May 2026 11:00:13 +0530 Subject: [PATCH 1/2] Fixed the editor background failures --- src/Core/src/Handlers/Editor/EditorHandler.iOS.cs | 4 ++++ src/Core/src/Handlers/Entry/EntryHandler.iOS.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs b/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs index 7ce02ec4ed6b..3daa568dce2e 100644 --- a/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs +++ b/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs @@ -97,6 +97,10 @@ public static void MapBackground(IEditorHandler handler, IEditor editor) } else if (editor.Background.IsNullOrEmpty()) { + // Skip resetting during initial setup to preserve shadow rendering and native default appearance. + if (handler.IsConnectingHandler()) + return; + platformView.RemoveBackgroundLayer(); platformView.BackgroundColor = null; } diff --git a/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs b/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs index ec5779150915..7f2b93893052 100644 --- a/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs +++ b/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs @@ -62,6 +62,10 @@ public static void MapBackground(IEntryHandler handler, IEntry entry) } else if (entry.Background.IsNullOrEmpty()) { + // Skip resetting during initial setup to preserve shadow rendering and native default appearance. + if (handler.IsConnectingHandler()) + return; + platformView.RemoveBackgroundLayer(); platformView.BackgroundColor = null; return; From 1162e56f426a6bcb8c188f19f3732dd861edc645 Mon Sep 17 00:00:00 2001 From: Shalini-Ashokan <102292178+Shalini-Ashokan@users.noreply.github.com> Date: Thu, 7 May 2026 15:54:33 +0530 Subject: [PATCH 2/2] modified the fix --- src/Core/src/Handlers/Editor/EditorHandler.iOS.cs | 7 ++----- src/Core/src/Handlers/Entry/EntryHandler.iOS.cs | 4 ---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs b/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs index 3daa568dce2e..d031e740f587 100644 --- a/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs +++ b/src/Core/src/Handlers/Editor/EditorHandler.iOS.cs @@ -3,6 +3,7 @@ using Foundation; using Microsoft.Maui.Devices; using Microsoft.Maui.Graphics; +using Microsoft.Maui.Platform; using UIKit; namespace Microsoft.Maui.Handlers @@ -97,12 +98,8 @@ public static void MapBackground(IEditorHandler handler, IEditor editor) } else if (editor.Background.IsNullOrEmpty()) { - // Skip resetting during initial setup to preserve shadow rendering and native default appearance. - if (handler.IsConnectingHandler()) - return; - platformView.RemoveBackgroundLayer(); - platformView.BackgroundColor = null; + platformView.BackgroundColor = ColorExtensions.BackgroundColor; } else { diff --git a/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs b/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs index 7f2b93893052..ec5779150915 100644 --- a/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs +++ b/src/Core/src/Handlers/Entry/EntryHandler.iOS.cs @@ -62,10 +62,6 @@ public static void MapBackground(IEntryHandler handler, IEntry entry) } else if (entry.Background.IsNullOrEmpty()) { - // Skip resetting during initial setup to preserve shadow rendering and native default appearance. - if (handler.IsConnectingHandler()) - return; - platformView.RemoveBackgroundLayer(); platformView.BackgroundColor = null; return;