compose-multiplatform-core
compose-multiplatform-core copied to clipboard
Opt-out of new touches strategy on iOS
Right now all touches are delayed until reception by interop views after changed introduced by https://github.com/JetBrains/compose-multiplatform-core/commit/a78dd417a3e1aec2aa2e009d46129551eb215a4e
Similar to interaction of UIControl
and UIScrollView
, sometimes it's not a desirable behavior and touches should be processed exclusively by child views without any delay, as it was working before (without intending so).
The changes in this PR include new API allowing opt-out of new behavior and logic, that respect the values passed in the API.
Fixes CMP-5705
Testing
First touch event in a sequence, being hit-tested against UIKitView
with areTouchesDelayed
set to false
should be ignored by Compose and immediately dispatched.
See native MKMapView
in Demo/iOS-specific features/UIKitInterop
This should be tested by QA
Release Notes
iOS - Features
- Allow to opt-out of newly introduced touches processing strategy in interop views, see new
areTouchesDelayed
argument inUIKitView
andUIKitViewController
API.