rundfunk47 / stinsen

Coordinators in SwiftUI. Simple, powerful and elegant.
MIT License
907 stars 95 forks source link

Exclude screens during deeplink #112

Closed vveidi closed 1 year ago

vveidi commented 1 year ago

I have a coordinator which parses my deeplinks. Basically, it has three methods in order to transition to three consecutive views:

func makeStart() -> some View {
    TimetableView()
}

func makeJoinMeeting(model: JoinMeetingModel) -> some View {
    JoinMeetingView(model: model)
}

func makeMeeting(model: MeetingModel) -> some View {
    MeetingView(model: model)
}

If my user is currently on MeetingView I'd like to disable route transition after deeplink. How can I do this? Should I implement another coordinator?

vveidi commented 1 year ago

Fixed by creating additional class to manage deeplinks. Closing the issue