![iphone – HeaderTemplate drawback on iOS 17 – Xamarin types iphone – HeaderTemplate drawback on iOS 17 – Xamarin types](https://geeks-news.com/wp-content/uploads/https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded)
[ad_1]
In my utility I take advantage of CollectionView to show publish like a fb. Above record I’ve details about consumer. On new iPhone units with iOS 17, there’s a drawback with skipping the record, and posts are scattered (some have quite a lot of empty area, others are reduce off). This drawback doesn’t happen on different iPhone units or any Android gadget. I came upon that the issue solely happens if the CollectionView additionally incorporates a HeaderTemplate. It doesn’t matter what is in it or what’s within the ItemTemplate, the issue is all the time the identical.
My code:
<CollectionView
x:Identify="collectionViewHome"
ItemsSource="{ Binding WallList }"
Header="{Binding .}"
VerticalOptions="FillAndExpand"
RemainingItemsThreshold="0"
RemainingItemsThresholdReachedCommand="{Binding LoadWallCommand}">
<CollectionView.HeaderTemplate>
<DataTemplate>
<StackLayout>
<!-- Identify -->
<Label
Margin="0,0,0,10"
Textual content="{Binding Identify}"
TextColor="{DynamicResource WhiteTextColor}"
FontSize="9"
VerticalOptions="Finish"
HorizontalOptions="Middle"/>
</StackLayout>
</DataTemplate>
</CollectionView.HeaderTemplate>
<CollectionView.ItemTemplate>
<DataTemplate>
<StackLayout>
<wallTemplates:WallItemTemplate/>
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
Did you even have such an issue? Tips on how to remedy it?
[ad_2]