From 1204a164217e14d4e69a43e3c270eacad726f37a Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Wed, 4 Dec 2024 14:01:27 +0100 Subject: [PATCH] CV2 - Disable clipping bounds for WrapperView --- .../src/Core/Handlers/Items2/iOS/TemplatedCell2.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Handlers/Items2/iOS/TemplatedCell2.cs b/src/Controls/src/Core/Handlers/Items2/iOS/TemplatedCell2.cs index 6f35bcf7cedd..b4748495f735 100644 --- a/src/Controls/src/Core/Handlers/Items2/iOS/TemplatedCell2.cs +++ b/src/Controls/src/Core/Handlers/Items2/iOS/TemplatedCell2.cs @@ -276,7 +276,6 @@ public UIContainerView2(IView view, IMauiContext mauiContext) _view = view; _mauiContext = mauiContext; UpdatePlatformView(); - ClipsToBounds = true; } internal void UpdatePlatformView() @@ -289,6 +288,16 @@ internal void UpdatePlatformView() nativeView.RemoveFromSuperview(); } + if (nativeView is WrapperView) + { + // Disable clipping for WrapperView to allow the shadow to be displayed + ClipsToBounds = false; + } + else + { + ClipsToBounds = true; + } + AddSubview(nativeView); }