JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.87k stars 1.15k forks source link

Bug in LazyColumn when you have an interactive UIKitView inside #3525

Open MohamedRejeb opened 1 year ago

MohamedRejeb commented 1 year ago

Describe the bug When you have a LazyColumn with an interactive UIKitView that has some animations like the time picker, if the time picker is animating, the LazyColumn scroll behavior is not correct.

Affected platforms

Versions

To Reproduce

  1. Add a lazy column
  2. Add some demo composables to have a scroll
  3. Add a UIKitView to the lazy column (The UiKit time picker wheel or something similar)

Expected behavior It should scroll normally.

Screenshots

https://github.com/JetBrains/compose-multiplatform/assets/124871594/1f44f392-f86d-4e96-ba6c-63101bb0c490

mazunin-v-jb commented 1 year ago

Hello, thanks for the issue. I'll pass it on to the team.

kirvigen commented 6 months ago

I have the same proble with AVPlayerViewController inside UIKitView

https://github.com/JetBrains/compose-multiplatform/assets/38012174/54e17219-9b17-44e7-9588-492a44779ae2

kasem-sm commented 5 months ago

any updates on this issue?

elijah-semyonov commented 5 months ago

Not yet. I'll have a look at it asap.

dilip640 commented 3 months ago

Any update on this?

elijah-semyonov commented 3 months ago

I've performed a little investigation on this, but no resolution yet. It's a low priority issue at the moment. I'd advise against using animated interop views at the same time as changing their frames within Compose due to the CATransaction mechanism causing awkward bugs like that.

okushnikov commented 1 week ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.