Is there a pretty way of presenting multiple alerts via destination enum? #3501
Unanswered
iharandreyev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I am trying to incorporate multiple alerts and a sheet destination into a single destination enum.
The reasoning behind this is that a screen can either present a single alert, or a sheet.
But initial attempt yields ugly results.
I don't like that one has to dig into
.some.wrappedValue
, looks like a shady design to me.Any ideas to do this in a more ergonomic way?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions