I often see code like this:
VStack {
Text("A")
Text("B")
}
From looking at the swift tutorials, I know that this is shorthand for specifying a closure as the last parameter to a function. However, afaik if the return
keyword is not specified, a closure will implicitly return the result of the expression inside.
In this case, there are two Text
objects. Are they returned as a tuple or a list? I know it works, but its unclear to me, what exactly is being returned from the closure.