Ch. 8.5 Saving to Cloud Firestore using SwiftUI (Snacktacular app)

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • Learn to save data to Cloud Firestore in SwiftUI. We'll use the new SwiftUI @DocumentID property wrapper, and we'll create a Model (MVVM) that uses a Dictionary computed property to make our save code more reusable. Part of the Snacktacular app series.
    Part of a university course by Prof. John Gallaugher designed for the absolute beginner, where students will learn to program using Swift + SwiftUI. The course will move from no assumed prior programming experience while students learn fundamental, then intermediate and advanced concepts, culminating in a full stack app. Full free course playlist at:
    bit.ly/prof-g-...
    This course will roughly mirror the content covered in my UIKit course at bit.ly/prof-g-.... Subscribe - many more videos coming soon!

КОМЕНТАРІ • 8

  • @andrejkling3886
    @andrejkling3886 Рік тому +3

    Excellent explanation John…👍✨ Thank you

  • @aakka-p
    @aakka-p 10 місяців тому

    It was going so well and suddenly it became complicated as heck 😂do they really have to be named by spot, Spot, spots, Spots?

  • @DavidNitzscheBell
    @DavidNitzscheBell Рік тому +1

    27:26 I feel so unlucky. I also have the warning "result of call to addDocument(data:) is unused". Yours disappeared when you added the "try" statements, but mine remains. Any ideas?

  • @alextoma402
    @alextoma402 10 місяців тому

    What is the point of that @Published var spot = Spot() in our ViewModel? I Doesn't seem like it's used for anything

  • @alextoma402
    @alextoma402 10 місяців тому

    may you please please please do a video on how you're reaeding the firebase documentation? It's really confusing to me even though I understand the concepts in this video

  • @tomayo9136
    @tomayo9136 Рік тому +1

    Can you make a video about saving photos and images to the Firebase storage? I understand text info saving to firebase Firestore but media is stored to the firebase storage and it’s really confusing.. also showing the specific rules required on the firebase side of things.

    • @profgallaugher
      @profgallaugher  Рік тому +1

      We’ll get there. If you look at 8.0 you’ll see what we are building toward.

    • @profgallaugher
      @profgallaugher  Рік тому +3

      If you check the playlist you’ll now see a very comprehensive set of lessons on saving to Cloud Storage for Firebase, saving related dafa to the Cloud Firestore database, and loading data from Cloud Storage using URLs saved in Cloud Firestore. Hope you find the lessons useful!