https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
v

Vlad Mircan

03/27/2024, 6:13 PM
Hey guys, has anyone come across this issue? It happens when an
iOS
sheet is displayed on top of a screen that has the content built in
Compose
. The default
iOS
behaviour causes the screen to shrink (to achieve that stacking effect). This is all good however, the compose content doesn't react to the changes well, leaving a white streak.
a

Andrei Salavei

03/27/2024, 9:24 PM
Hi there! What version of Compose you're using? Please try to use latest version. Similar bug was already fixed here: https://github.com/JetBrains/compose-multiplatform-core/pull/1093
v

Vlad Mircan

03/27/2024, 10:05 PM
Thanks for responding and linking the pr! It really does look like the same issue I'm having. Video was made using
1.6.0-beta02
however even upgrading to
1.6.1
didn't fix it right away (after the quick round of testing I did). I'll try some more and follow the repository to see what could be different. If you don't hear back from me, assume the issue is fixed. Thanks a lot again!
a

Andrei Salavei

03/28/2024, 7:13 AM
The source of problem was that iOS changes
transform
property of the view controller's view when it resigns active state. And because of that compose scene size was adjusted according to the scaled view size on the screen. If nothing help, please feel free to fire an issue. Also it would be super helpful if you can provide some repro sample there.
👍 2
v

Vlad Mircan

04/06/2024, 12:49 PM
@Andrei Salavei Coming back to this as I've been unable to prioritise it in the past week. I got to the bottom of the issue and it was being caused by the
focusRequester
. Can confirm that other bottomSheets do work well! Considering the above, what should be the course of action I should take? Should I open a new issue or revive the old one?
3 Views