Hello everyone. I want to implement navigation in ...
# decompose
n
Hello everyone. I want to implement navigation in my app using decompose and its PredictiveBackGesture api, however i have some screens containing native UIViews wrapped in UIKitView composable, which i give the following properties:
Copy code
UIKitInteropProperties(
    // Disable cooperative gesture handling
    interactionMode = UIKitInteropInteractionMode.NonCooperative,
    // Disable native accessibility features
    isNativeAccessibilityEnabled = false,
)
as I want to enable interaction with the native view. Now obviously the Predictive back swiping will not work in this case as the Native view consumes all events, but at the same time I need to have a non-cooperative interaction mode as my UIView needs to be fully interactive. Does anyone have any ideas on how to implement something of this sort? Thanks in advance !
a
I think there is a similar situation on Android, where you can't fully control screen edges, unless your screen is in the immersive mode. I'd suggest to change the UX and avoid using screen edges in your screens. Or maybe allow the user to toggle the behaviour.
n
you mean avoid having native views fill the screen edges?
a
Yes.
A third option would be disabling predictive back gesture on that particular screen.