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!
Excellent explanation John…👍✨ Thank you
It was going so well and suddenly it became complicated as heck 😂do they really have to be named by spot, Spot, spots, Spots?
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?
What is the point of that @Published var spot = Spot() in our ViewModel? I Doesn't seem like it's used for anything
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
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.
We’ll get there. If you look at 8.0 you’ll see what we are building toward.
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!