Closed vpontis closed 10 months ago
@nathantannar4 can I request your review on this? 😄
Is this because you're using a mix of native and non-native sheets? DismissPresentationLink should work out of the box with the .sheet modifier since the presentation coordinator used will fallback to SwiftUI's .dismiss action, which should dismiss the native sheet.
If you're using a mix of native and non-native sheets then I can see how the wrong sheet may be dismissed.
It was an intentional choice to make the init of PresentationCoordinator private to enforce consistency.
Gotcha, we reverted to not mixing Transmission + native sheets so I'll close this!
For some context, I'm exploring using native SwiftUI sheets for some of our sheets and want to continue using
DismissPresentationLink
which relies onPresentationCoordinator
.Here is my sheet code: