The trailing closure is beautiful!

zoujiaqing zoujiaqing at gmail.com
Mon Dec 7 19:37:43 UTC 2020


In swift:

```
import SwiftUI

struct ContentView: View {
     var body: some View {
         Text("Hello World")
     }
}
```


In kotlin:

```
@Composable
fun ArtistCard(artist: Artist) {
     Row(verticalGravity = Alignment.CenterVertically) {
         Image(...)
         Column {
             Text(artist.name)
             Text(artist.lastSeenOnline)
         }
     }
}
```


More information about the Digitalmars-d mailing list