Skip to content
Discussion options

You must be logged in to vote

Hi @wtruppel, are you using the new presentation tools such as @PresentationState and ifLet? If so, then effects from child features are automatically cancelled when the feature is dismissed. This works even if there is a presentation chain of childA>childB>childC and you dismiss childA. The effects for childB and childC will be cancelled.

However, I will also say that SwiftUI (and sometimes, but less often, UIKit) has a problem with dismissing long chains of presentation all at once. In practice you may find that you have to dismiss in a multi-step process. Just something to be aware of in case you see strange behavior.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant