In my application I use CollectionView to display post like a facebook. Above list I have information about user. On new iPhone devices with iOS 17, there is a problem with skipping the list, and posts are scattered (some have a lot of empty space, others are cut off). This problem does not occur on other iPhone devices or any Android device. I found out that the problem only occurs if the CollectionView also contains a HeaderTemplate. No matter what is in it or what is in the ItemTemplate, the problem is always the same.
My code:
<CollectionView
x:Name="collectionViewHome"
ItemsSource="{ Binding WallList }"
Header="{Binding .}"
VerticalOptions="FillAndExpand"
RemainingItemsThreshold="0"
RemainingItemsThresholdReachedCommand="{Binding LoadWallCommand}">
<CollectionView.HeaderTemplate>
<DataTemplate>
<StackLayout>
<!-- Name -->
<Label
Margin="0,0,0,10"
Text="{Binding Name}"
TextColor="{DynamicResource WhiteTextColor}"
FontSize="9"
VerticalOptions="End"
HorizontalOptions="Center"/>
</StackLayout>
</DataTemplate>
</CollectionView.HeaderTemplate>
<CollectionView.ItemTemplate>
<DataTemplate>
<StackLayout>
<wallTemplates:WallItemTemplate/>
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
Did you also have such a problem? How to solve it?




