I would like to be able to write something like:
struct FooView: View
{
let foo: Foo;
var body: some View {
assert(foo.valid);
......
}
};
but of course I can't, because "Type () cannot conform to View".
What's the best way to achieve this?