The basic template for SwiftUI View begins with a simple Text view:
1 2 3 4 5 |
struct ContentView: View { var body: some View { Text("Hello World!") } } |
When a Text view is returned with no attributes, it is put it in the middle of the view.
[Read more…]