xamarin / XamarinCommunityToolkit

The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] StateLayout on iOS - Collection View Overlap

Goksly opened this issue · comments

commented

Description

I have attached a simple example - a stack layout with a collection view (start&expand) and then multiple stacklayouts (end). Everything works as expected. I then put the statelayout hook onto the parent stack layout, and for iOS this causes the elements to overlap. If I remove the collectionview the overlapping stops. So the issue is when the situation involves both statelayout and a collectionview.

Link to Reproduction Sample

https://github.com/Goksly/StateLayoutIssue

Steps to Reproduce

  1. Open the app
  2. Click the menu top left
  3. Browse

Expected Behavior

As per Android, the collectionview should take up the space it needs with a "sticky" footer of the examples.

Actual Behavior

In iOS everything is stacked over each other.

Basic Information

  • Version with issue:
  • Last known good version: 2.0.6
  • IDE: VS 2022 17.5.5
  • Platform Target Frameworks:
    • iOS: 8.0
    • Android: 5.0
  • Android Support Library Version:
  • Nuget Packages: Essentials,CommunityToolkit.Mvvm
  • Affected Devices: All on iOS I've tried.

Workaround

None. I've tried all sorts of layouts and tweaking controls being added, removed, made invisible etc and nothing works.

Reproduction imagery

IMG_0074
IMG_0075

commented

@sthewissen probably out of order since you've passed your baby over, but reaching out as this is really causing me headaches. Do you have any ideas of a work around for this issue on the iOS platform?