An introduction and beyond
Dimitris Tsiflitzis
There is no pressure to keep up with the
Latest
Greatest
Biggest
and more badass
Best
Text("This is some text")
HStack {
Text("SwiftUI")
Text("rocks")
}
VStack {
Text("SwiftUI")
Text("rocks")
}
ZStack {
Text("SwiftUI")
Text("rocks")
}
@State private var name: String = "Tim"
TextField("Enter your name", text: $name)
List {
Text("First!")
Text("Second")
}
let first = "1"
let second = "2"
let third = "3"
let all = [first, second, third]
List(all) { item in
Text(item)
}
@State private var enableLogging = false
Form {
Toggle(isOn: $enableLogging) {
Text("Enable Logging")
}
Button(action: {
}) {
Text("Save changes")
}
}
NavigationView {
Text("SwiftUI")
.navigationBarTitle("Welcome")
}
TabView {
NavigationView {
Text("SwiftUI")
.navigationBarTitle("Welcome")
}
NavigationView {
Text("SwiftUI")
.navigationBarTitle("Welcome")
}
Text("SwiftUI")
}
import SwiftUI
struct ContentView: View {
var body: some View {
Text("Hello World")
}
}