Marek Niedbach
06/20/2024, 2:40 PMplatformLayers = false
as without it there is no background shadowing. But the Issue I have is that neither AlertDialog nor PopupMenu is accessible via accessibility API on iOS. They are accessible without setting platformLayers
to false
.
Is there any option to have both platformLayers = false
and accessibility API for my dialogs/popups on iOS?Marek Niedbach
06/20/2024, 2:42 PMplatformLayers
to false
and the background shadowing will be fixed in one of the next releases of the compose multiplatformMarek Niedbach
06/20/2024, 2:48 PMIvan Matkov
06/20/2024, 3:04 PMplatformLayers
is a temporary parameter in case of issues, it will be removed in a few versions (not sure when exactly yet). Please make sure that this issue is tracked in our GitHub.
Regarding shadows - it's tricky one. shadows size are not part of layout/measured size and with separate native view we cannot just draw outside. In 1.6.10 I fixed it by measuring real drawings in addition to layout, but... metal drawing + native layout has some sync issues that happen not in our code/Compose, so it can bring some visual jumps during animation. We have some ideas for future improvements here, but it will cost some performance probably 🙁Ivan Matkov
06/20/2024, 3:08 PMplatformLayers
is known limitation and was one of the reasons of new layers structure introductionMarek Niedbach
06/20/2024, 3:20 PMMarek Niedbach
10/30/2024, 2:26 PM1.7.0
I see that there is no background shadowing issue, and the PopupMenu
accessibility works well without setting platformLayers=false
. But I still have an issue with AlertDialogs
as none of the controls inside are accessible by setting Modifier.testTag
. Is there anything I am missing to be able to have dialogs accessible on iOS side?Andrei Salavei
11/04/2024, 12:48 PM