-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UIKit] API for navigation between Compose screens #3046
Comments
Thanks! I think it's completed to use this code:
This UIKitView looks redundant. Maybe we can provide a better API for navigation between Compose screens and between UIKit screen and Compose. |
I want to navigate between different compose screens in a native way with swipe gestures and so on. It works and looks perfect btw, but i also want to be notified, when controller is popped from the screen. |
Ok, thanks! |
UIViewController
s lifecycle
Just a little example of what can be done for now with Untitled-2.mp4 |
Cool! |
@alexzhirkevich the plan is to release it as PR in |
Multiplatform swipe back navigation was already added to precompose (Tlaster/PreCompose#35). Looks almost the same as native. True native have some limitations and bugs now. |
I'm currently experimenting with a way to abstract navigation for all Compose targets in my project. |
Original issue is related to #3201 |
Just FYI, Decompose supports the predictive back gesture on all platforms. There is one known bug which I will fix soon, though. Plus, there are feature requests to make it better customizable, so it could look closer to the native variant. |
Any updates on this? As awesome as the community libraries addressing this are, I think Compose Multiplatform needs first party navigation and resource management solutions as those are parts of the app that can't be migrated easily if a library gets abandoned or isn't quick enough to fix critical bugs or update to newer kotlin/compose releases. |
@AhmedMourad0 Thanks! Yeah - you are right! Also we are looking at navigation as well! For now we are investigating different approaches and trying to find the best direction! |
Great news. I'm looking forward to first party solutions for navigation and resource management. |
Short description:
Provide API for native like(or really native) navigation between Compose screens on iOS with native gestures.
Previous title:
[UIKit] Unclear behaviour of nested
UIViewController
s lifecycle[Fixed together with memory leak fix]
I try to implement something like native uikit navigation for compose usingUINavigationController
andUiKitView
. And i faced the moment when i need to be notified when controller is popped.I cannot override
viewDidDissapear
ofUIViewController
causeComposeWindow
is internal, so i tried to useDisposableEffect
for that. But when ComposeWindow pops fromUINavigationController
,DisposableEffect
inside composable block does never executeonDispose
.The text was updated successfully, but these errors were encountered: