Skip to content

Is it possible to use Decompose with SwiftUI NavigationLink? #203

Answered by arkivanov
plusmobileapps asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, I'm not quite familiar with SwiftUI. As far as I know, NavgiationLink should be put around each item. I found the following links, which look useful:

But as far as I know, NavigationLink is active component. It accepts a View, and SwiftUI displays it inside NavigationView. Looks like in this case the navigation is managed by SwiftUI, however ideally it should be managed by Decompose. It's like still using Fragments in Android. So if possible, I would avoid

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@plusmobileapps
Comment options

@arkivanov
Comment options

Answer selected by plusmobileapps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants