Skip to content

[iOS] BindableLayout or a CollectionView in a CollectionView display bug #18557

Closed
@jeffgoku

Description

@jeffgoku

Description

After modified(add or remove) items in the inner ItemsSource the inner Layout WONT update the bounds or just display for first item.

When the outter CollectionView is long enough to be scrolled, the inner CollectionView will be updated incorrectly, all the inner CollectionView will only display the first item

Only for iOS, android is ok

Steps to Reproduce

// outter CollectionView
<CollectionView ItemsSource="{Binding Items}">
    <CollectionView.ItemTemplate>
        <DataTemplate>
             <local:InnerView BindingContext="{Binding}" />
        </DataTempalte>
   </CollectionView.ItemTemplate>
</CollectionView>

// InnerView
<Border>
   // no matter this is BindableLayout or CollectionView, the same result
    <VerticalStackLayout BindableLayout.ItemsSource="{Binding Items}">
      <BindableLayout.ItemTemplate>
         <DataTemplate>
             <SwipeView>
                    <Grid ColumnDefinitions="*" Padding="6, 2">
                        <VerticalStackLayout Spacing="1">
                            <Label Text="{Binding Title}"/>
                            <Label FontSize="10" Padding="2,0,0,0" TextColor="Gray" Text="{Binding Time}"/>
                        </VerticalStackLayout>
                    </Grid>
             </SwipeView>
         </DataTemplate>
      </BindableLayout.ItemTemplate>
    </VerticalStackLayout>
</Border>
  1. Use above UI
  2. Add enough items to InnerView and OutterView for the outter view to be able to scroll
  3. Scroll the OutterView

Expected Result: every item is displayed
Actual Result: only the first item of the inner view will be displayed

Link to public reproduction project repository

CollectionView bug

Version with bug

7.0.100

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17 simulator

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterdelighter-scpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions