Firestore + Swift Codable: The Easy Way to Handle Data
Автор: Firebase
Загружено: 2026-01-14
Просмотров: 474
Building a recipe app? Stop worrying about backend infrastructure and focus on the code. In this video, @peterfriese from the Firebase team shows you how to build a complete "cookbook" feature using Cloud Firestore and Swift.
You'll learn how to map your Swift structs directly to Firestore documents using Codable, making data handling a breeze. We’ll cover everything from saving your first recipe to listening for real-time updates, so your users always see the latest data across all their devices. Plus, we'll look at how to secure your data with Firestore Security Rules.
In this video, you'll learn:
How to model your data with Swift structs, Identifiable, and Codable.
Performing CRUD operations: Create, Read, Update, and Delete.
The difference between one-time fetches and real-time Snapshot Listeners.
How to handle optional fields and partial updates.
Essential tips for writing Firestore Security Rules.
Chapters
0:00 - Introduction
1:12 - Data Modeling with Swift Structs
1:46 - Firestore Concepts: Documents & Collections
2:38 - Mapping Data with Codable
3:15 - Saving Data (Create)
3:58 - Real-time Updates (Read)
5:28 - Updating Data (Update)
7:20 - Deleting Data (Delete)
7:43 - Feature Demo
8:57 - Security Rules
9:37 - Conclusion
Resources:
Friendly Meals Sample App (GitHub) → https://goo.gle/friendly-meals-apple
Map Firestore documents to Swift Codable → https://goo.gle/firestore-swift-codable
Firestore Documentation → https://bit.ly/firestore-docs
Watch more Firebase Fundamentals → https://goo.gle/Firebase-Fundamentals
Subscribe to Firebase → https://goo.gle/Firebase
#firebase #swift #iosdevelopment #firestore #swiftui #mobiledevelopment
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: