From 9cf4ccdc6fad528c54ebfc3fe2af4150ee9ccedf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Su=C3=A1rez=20Ruiz?= Date: Fri, 4 Oct 2019 00:47:16 +0200 Subject: [PATCH] Fixed PeekAreaInsets not working on iOS (#7802) --- Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs b/Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs index 56240f2..1b1f355 100644 --- a/Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs @@ -22,7 +22,7 @@ namespace Xamarin.Forms.Platform.iOS { base.OnElementPropertyChanged(sender, changedProperty); - if (changedProperty.Is(CarouselView.PeekAreaInsetsProperty)) + if (changedProperty.IsOneOf(CarouselView.PeekAreaInsetsProperty, CarouselView.NumberOfSideItemsProperty)) { (CarouselViewController.Layout as CarouselViewLayout).UpdateConstraints(Frame.Size); CarouselViewController.Layout.InvalidateLayout(); -- 2.7.4