I'm newbie for Swift UI. Which syntax parts do I have to study for understanding below code?
struct ContentView: View {
var body: some View {
VStack {
Text("aaa")
Text("bbb")
}
}
}
Below are what I want to understand
- is body read-only property? So is VStack { ... } implicitly returned value?
- VStack is struct, how brace can follow right after VStack? And how are Text Views able to be followed in brace? which syntax do I have to study to understand it?