April 2020
Beginner
316 pages
8h 20m
English
Learning a new programming language always starts with "Hello World", no matter how experienced a developer you are (and I won't have anyone tell me any different).
SwiftUI is no different. By default, it will give you some very basic boilerplate code to get you started. If you followed the preceding sections correctly, you'll be presented with the following:
struct ContentView: View { var body: some View { Text("Hello World") }}
This is your first look at SwiftUI's declarative syntax – looks great, doesn't it? Well, actually, it doesn't look like a lot, but when we break it down, you'll see how powerful it is and how much is actually being done.
Let's start by taking a look at the first couple of lines:
struct ...
Read now
Unlock full access