SwiftUIX / Coordinator

A declarative navigation API for SwiftUI.
MIT License
252 stars 21 forks source link

Do we have some transition type similar to fullScreenCover? #2

Open peetorres opened 2 years ago

peetorres commented 2 years ago

Hello! First of all, this is an amazing repo! Congratulations!!

I'm studying use it into some proof of concept project, and I didn't found nothing about present in full screen. Do you have implemented this scenario? There's something more to do when when we return .present(view) into Coordinator?

I've tried to use .set(view), but it's replacing my current view, right? So with this we don't have the @Environment(\.presentationMode) var presentationMode to dismiss later 😩.

Thank you.

vmanot commented 2 years ago

@peetorres hey, sorry for the delayed reply - it's technically doable right now by setting a custom presentation style on the AnyPresentationView that you pass to a ViewTransition, but I'm working on adding a more ergonomic approach.