-
Introduction to SwiftUI
Explore the world of declarative-style programming: Discover how to build a fully-functioning SwiftUI app from scratch as we explain the benefits of writing declarative code and how SwiftUI and Xcode can combine forces to help you build great apps, faster.
Recursos
Vídeos relacionados
WWDC23
WWDC20
WWDC19
-
Buscar neste vídeo...
-
-
17:18 - Views are lightweight
struct SandwichDetail: View { let sandwich: Sandwich var body: some View { Image(sandwich.imageName) .resizable() .aspectRatio(contentMode: .fit) } } -
18:30 - Views are composed
struct SandwichDetail: View { let sandwich: Sandwich var body: some View { Image(sandwich.imageName) .resizable() .aspectRatio(contentMode: .fit) } } -
19:52 - View are dynamic
struct SandwichDetail: View { let sandwich: Sandwich @State private var zoomed = false var body: some View { Image(sandwich.imageName) .resizable() .aspectRatio(contentMode: zoomed ? .fill : .fit) .onTapGesture { zoomed.toggle() } } } -
21:40 - Where is truth?
struct SandwichDetail: View { let sandwich: Sandwich @State private var zoomed = false var body: some View { Image(sandwich.imageName) .resizable() .aspectRatio(contentMode: zoomed ? .fill : .fit) .onTapGesture { zoomed.toggle() } } }
-