compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Bug in LazyColumn when you have an interactive UIKitView inside

Open MohamedRejeb opened this issue 1 year ago • 6 comments

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

  • iOS

Versions

  • Kotlin version: 1.9.0
  • Compose Multiplatform version: 1.5.0-beta02
  • OS version(s): All

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

MohamedRejeb avatar Aug 18 '23 06:08 MohamedRejeb

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

mazunin-v-jb avatar Aug 18 '23 12:08 mazunin-v-jb

I have the same proble with AVPlayerViewController inside UIKitView

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

kirvigen avatar Feb 28 '24 07:02 kirvigen

any updates on this issue?

kasem-sm avatar Apr 06 '24 04:04 kasem-sm

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

elijah-semyonov avatar Apr 08 '24 07:04 elijah-semyonov

Any update on this?

dilip640 avatar May 14 '24 07:05 dilip640

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.

elijah-semyonov avatar May 14 '24 07:05 elijah-semyonov

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

okushnikov avatar Aug 26 '24 13:08 okushnikov