I have a Dictionary with a key who's values need to return a SwiftUI view. I thought at first of doing:
[String:some View] but the compiler complains that `'some' types' can't be used in this way. Ok, then maybe I can use a closure as the value:
[String:() -> some View] but the compiler has issues with this as well:
'some' types are only implemented for the declared type of properties and subscripts and the return type of functions
Any suggestions on how I can look up based upon a key a given View?