unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.92k stars 722 forks source link

[iOS] Avoid non-`UIElement` items in `ChildrenShadow` #18474

Open MartinZikmund opened 2 weeks ago

MartinZikmund commented 2 weeks ago

What would you like to be added

In some cases, iOS adds custom temporary UIViews (accessibility/input related). as children of our UIElements. This is a problem as Children as a UIElementCollection assumes that there will be no null items. Hence we need to make sure to filter away the non-UIElement children and avoid their projection to Children as null

Why is this needed

Reliability.

For which platform

iOS

Anything else we need to know?

No response

Youssef1313 commented 1 week ago

NOTE: When fixing this, the workaround in https://github.com/unoplatform/uno/pull/18470 can be reverted