GeometryReader: how to fix: "Unable to infer complex closure return type; add explicit type to disambiguate"?

That's due to a current limitation in Swift where the closure's return type is inferred only if its content is a single expressions.

3 Likes