Skip to content

Navigating using enum cases without associated values #161

Answered by mbrandonw
vrutberg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vrutberg, there is a simpler solution to your problem. You can use the isPresented variant of sheet, along with the Binding initializer that turns a Binding<T?> into a Binding<Bool>:

sheet(
  isPresented: Binding($viewModel.route.contactSupport)
) { _ in
  
}

Can you try that out?

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@mbrandonw
Comment options

Answer selected by vrutberg
@vrutberg
Comment options

@stephencelis
Comment options

@vrutberg
Comment options

@stephencelis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants