Open nilufer32 opened 1 month ago
any updates on this issue?
I'll have a look at it soon.
The nested scrolling issue is a separate one: https://github.com/JetBrains/compose-multiplatform/issues/3806
But is the scrolling issue related to the shrinking/stretching of the content?
Not really
Memory warning doesn't seem to be related to the repro you posted. Most likely you have a retain cycle between Kotlin and ObjC with a strong reference inside ObjC API that Kotlin can't break.
@elijah-semyonov I dont really see how could that be the case as the prototype app I used to reproduce the bug uses the standard architecture of a multiplatform app where I simply use a ComposeUIViewController from swift, and to this view controller I add the sample code above
Do you mind sharing the whole solution? "DidReceiveMemoryWarning" means something went terribly wrong.
all I do to trigger the memory warning is attempt to scroll inside the column in my bottom sheet by scrolling multiple times consecutively. this actually does scroll inside my column but at an extremely slow pace as in every scroll event scrolls the column by 1 pixel roughly
Can you record it? I fail to reproduce this behavior.
sure ill record it right now
Here's the repo containing the reproduction code: https://github.com/nilufer32/test
@nilufer32
You've got wrong Compose Version in repro 🌚
compose = "1.5.11"
Reproduced memory spike though
the issue is 100% reproducible using compose 1.6.10 and kotlin 2.0.0. I just seem to have forgotten to update the library versions when I was creating a sample app to post for you onto github :)
A memory spike
part of the issue should be fixed in https://github.com/JetBrains/compose-multiplatform-core/pull/1390
Describe the bug A clear and concise description of what the bug is. When using ComposeUiViewController, and setting the modalPresentationStyle of the view controller to UIModalPresentationFormSheet, dragging the form sheet updwards/downwards causes shrinking/stretching of the nested composable scrollable column I place inside it. Also im not able to vertically scroll my column.
Affected platforms
IOS
Versions
To reproduce:
Video depicting the bug :
https://github.com/JetBrains/compose-multiplatform/assets/151455263/924b9ce3-0c92-4aca-b55b-5338c5e90431
Additional Warning: When attempting to scroll in my nested vertically scrollable column, I receive the following logs in Xcode: DidReceiveMemoryWarning