Home IOS Development iphone – HeaderTemplate drawback on iOS 17 – Xamarin types

iphone – HeaderTemplate drawback on iOS 17 – Xamarin types

0
iphone – HeaderTemplate drawback on iOS 17 – Xamarin types

[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]

LEAVE A REPLY

Please enter your comment!
Please enter your name here