Skip to content

Using Path navigation when the feature view is already contained in NavigationStack #3214

Answered by mbrandonw
shannoga asked this question in Q&A
Discussion options

You must be logged in to vote

Since navigation controllers/stacks cannot be nested, you simply cannot use StackState for your domain. You can use tree-based navigation, where views are pushed onto the stack via optional state, but that is quite different from how you have things structured now.

Or you could look at some of the tools we have built for our UIKit navigation beta which allows you to use a stack-based controller in UIKit with TCA features and vanilla SwiftUI/UIKit features.

Unfortunately there is no easy answer here. You are going to have to do some work to disentangle things and have just a single navigation controller/view powering your features.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shannoga
Comment options

@mbrandonw
Comment options

Answer selected by shannoga
@shannoga
Comment options

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