When using `UIKitViewController(interactive = true...
# compose-ios
m
When using
UIKitViewController(interactive = true)
on the compose multiplatform side to inject a swift UI view, is there a way to forward pointer input events back to the compose side? For more context I have a Gesture detection that detects a swipe right gesture so I can navigate back. This works well with compose multiplatform but the gesture is not detected anymore when using swift Ui since all pointer events are not forwarded back.
e
There are some improvements incoming, but can you describe in-details how you expect events to be processed?
m
I'm not sure really. But a more fine grained option other than enabling or disabling screen interactivity would be great. For example having the ability to decide to forward input events back to the parent from swift ui would be great. Currently even if we managed to do so, the interop layer would still ignore input events
e
I’m collecting the cases for investigating different interop scenarios so that we could make an API for expressing your intent simple and easy. If you make a CMP project with a setup of UI and written explanation on how you would like it to behave - it will certainly help the cause 🙂
If you also make a duplicate with the native implementation of that behavior - that would be stellar.
Also, please, specify a version! 🙂
m
That's a good idea. Will try to do that to tomorrow. I can certainly reproduce the issue in a simple project and explain the behavior of like to see. Though I'm jot sure I know what kind of api I'd like 😅
e
A demo and explanation is enough!
👍 1
m
Elijah, I’ve been downloading compose multiplatform 1.7.0-alpha03 and it seems there’s work happening in that area. The main difference is that now touch events are forwarded back to compose my swift ui view is not scrolling anymore 😅 Is there anything I could to improve that behavior with that new version?
e
Please send a repro, so I can understand exactly what you mean 🙂
m
That’s what happening with 1.6.3 Scrolling works. But swiping back doesnt because it’s handled at the compose side
And this is what’s happening with 1.7.0-alpha03 Now swiping back works. But I can’t scroll anymore
e
Please provide a repro, it’s hard to say what’s going on without looking at the code
If second view is SwiftUI can you perhaps hold a finger for a little while before swiping?
m
The 2nd view is swift ui yes
I’m gonna work on a repro I can send you that doesn’t leak any company thing
Where can I send that?
e
m
Want me to create a new issue?
e
Yep!
m
👍