From dbad85f49efe5208ec6541d85b5a28f4ba921226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Sua=CC=81rez?= Date: Fri, 19 Aug 2022 18:17:16 +0200 Subject: [PATCH] Update the Border background even if the stroke is not assigned --- src/Core/src/Platform/iOS/ViewExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/src/Platform/iOS/ViewExtensions.cs b/src/Core/src/Platform/iOS/ViewExtensions.cs index 67483d4e3e85..561ee6e58f3e 100644 --- a/src/Core/src/Platform/iOS/ViewExtensions.cs +++ b/src/Core/src/Platform/iOS/ViewExtensions.cs @@ -59,9 +59,9 @@ public static void UpdateVisibility(this UIView platformView, Visibility visibil public static void UpdateBackground(this ContentView platformView, IBorderStroke border) { - bool hasBorder = border.Shape != null && border.Stroke != null; + bool hasShape = border.Shape != null; - if (hasBorder) + if (hasShape) { platformView.UpdateMauiCALayer(border); }