Is it anti-pattern to nest presented sheets? #2683
Answered
by
taskcruncher
taskcruncher
asked this question in
Q&A
-
Using the observation-beta, I am getting unexpected behavior attempting to present a sheet from within a presented sheet. Is nesting presented sheets anti-pattern? Or known to trigger SwiftUI bugs? |
Beta Was this translation helpful? Give feedback.
Answered by
taskcruncher
Dec 24, 2023
Replies: 1 comment 1 reply
-
Hi @taskcruncher, it should be perfectly fine to present sheets inside sheets. Can you provide a minimal project that demonstrates the behavior you are seeing? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TY: your response prompted me to dig deeper. The unexpected behavior was the result of using the TCA 1.5 sheet modifier
.sheet(store:)
, instead of TCA 1.6.sheet(item:)
. (This change is covered in the 1.6 / 1.7 migration guide)