It's more fundamental than that. Consider:
var body : some View {
if something {
return Image("hi")
} else {
return Text("hi")
}
}
this function won't even compile because Swift infers different types for the returns (Image vs Text).In order to give the return value a type, the if statement has to be encoded in the type system itself.