SwiftUI Essentials

⭐️

SwiftUIintro ⟩ SwiftUI Essentials

SwiftUI Esssentials (WWDC2024)

2:30 - Declarative views

// declarative views
Text("Whiskers")
Image(systemName: "cat.fill")
Button("Give Treat") { /* action */ }

Views

  • ContentView

  • PetRowView

  • RatingView

  • RatingContainerView

  • PetListView

Data Types

  • Pet

  • PetStore

  • PetStoreViewModel

App Definition

16:58 - App definition

@main
struct SwiftUIEssentialsApp: App {
    var body: some Scene {
        // ⭐️ app definition
        WindowGroup {
            ContentView()
        }
    }
}

Last updated