-
Notifications
You must be signed in to change notification settings - Fork 9
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
how to provide RouterContext for ios side correctly 0.5.0 in update #70
Comments
Hi @adelsaramii Thanks for opening the issue. You will need to have an |
i did but in AppDelegate.swift the RouterContextKt is Unresolved reference. |
Hi @adelsaramii apologies for the late reply. You'll need to add this file fun defaultRouterContext(): RouterContext = defaultRouterContext()
val Lifecycle.registry get() = this as LifecycleRegistry
fun Lifecycle.destroy() = registry.destroy()
fun Lifecycle.resume() = registry.resume()
fun Lifecycle.stop() = registry.stop() With that, I think you raised a good issue here - it is not intuitive to set this up, and the documentation is unclear. I will use this issue to address this. |
Same problem for me
|
Hi @adelsaramii & @voitenkodev I've added this section in the readme, that covers how to setup decompose-router on ios - and added code-examples for kotlin app delegates, and both swift-ui app and swift uikit app delegate. The Let me know how it goes |
Addressed in |
Thanks for fix |
i saw your example about platform-configurations Ios but there is no sample and im lost
i give you better look from my code and please guide me how to implement ios part
Class main.ios.kt
swift file ContentView.swift
swift file IOSApp
The text was updated successfully, but these errors were encountered: