`some View` for dictionary values

I would very much like to have dictionaries like:

[String:some View]

The allowances around some View feel incomplete at the moment.

:slight_smile:

Whoa, that is much better ask than mine. Thanks!

To be clear, do you actually want a dictionary whose values are all the same (unknown) type of view? This seems like a pretty rare use case to me.

And by “have”, do you mean as return types, or as variables?

Terms of Service

Privacy Policy

Cookie Policy