unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.76k stars 705 forks source link

[iOS][Android] Expander rendering issues #17548

Open igiona opened 1 month ago

igiona commented 1 month ago

Current behavior

I have to nested ItemsRepeater, the outer one contains an Expander element and the inner one contains a list of SwipeControl that I want to display. On Android and on iOS, when the number of SwipeControl items grows, the rendering gets shaky when the Expander gets expanded or retracted. Sometimes the elements are not displayed at all, sometimes only the last element is shown. When other parts of the UI are refreshed (via scroll, or expanding other elements) then suddenly all elements are displayed. You can see the behaviour in the following videos.

https://github.com/user-attachments/assets/5017684f-dd5f-403e-b937-42ae763bc8e1

https://github.com/user-attachments/assets/74e79def-05ed-4ee8-8a2f-5baa2ea04016

NOTE: in my real application, with more items ~10/20 the iOS app never manages to render the elements, it shows always only the last item making the app really unusable. In general, on iOS the problem seems more sever than on Android

Expected behavior

The items in the Expander are always rendered, regardless of their number or other elements state.

How to reproduce it (as minimally and precisely as possible)

Run https://github.com/igiona/uno-repro-ItemsRepeaterSwipe.git on Android or iOS.

Workaround

None which is practicable. On Android, "scrolling around" helps.

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

No response

Affected platforms

Android, iOS

IDE

Visual Studio 2022

IDE version

17.10.3

Relevant plugins

No response

Anything else we need to know?

No response

FrozDark commented 1 month ago

Seems like related to https://github.com/unoplatform/uno/issues/12770