Переглядів 51,200
💬 Build a chat application with real-time updates from scratch in SwiftUI, with Firebase Firestore
In this tutorial, you'll learn how to code all the components required that make up the chat view, create and configure a Firebase project, connect Firebase to the app, and read from and write to Firestore, with real-time updates - meaning the chat conversation will be updated instantly when a new message is added to Firestore.
🔗 Links mentioned in the video:
➡ Unsplash: unsplash.com/
➡ Firebase Console: console.firebase.google.com/
➡ Firebase iOS SDK Github repo: github.com/firebase/firebase-...
➡ Cloud Firestore Data model: firebase.google.com/docs/fire...
➡ Get to know Firestore UKposts video: • What is a NoSQL Databa...
➡ ScrollViewReader documentation: developer.apple.com/documenta...
➡ scrollTo(_:anchor:) documentation: developer.apple.com/documenta...)
👩🏻💻 Source code on Github:
➡ github.com/stephdiep/ChatApp
✏️ Watch without ads, and access the written version and source files:
➡ Part 1: designcode.io/quick-apps-swif...
➡ Part 2: designcode.io/quick-apps-swif...
➡ Part 3: designcode.io/quick-apps-swif...
🪄 Join our channel and unlock members-only perks:
➡ / @designcodeteam
👋🏻 Let's connect!
➡ Twitter: / diepsteph
🎞 Video timestamps
➡ Part 1 - Create project, components and model
0:00 - Introduction
1:40 - Create Xcode project
2:51 - Update Assets folder
4:34 - Code the TitleRow
9:03 - Create the Message model
10:31 - Code the MessageBubble
➡ Part 2 - Finish UI and configure Firebase
18:34 - Code the MessageField
23:24 - Create Firebase project
26:01 - Add Firebase SDK and initialization code
28:29 - Create Firestore database
29:34 - Add data to Firestore
➡ Part 3 - Read and write with Firestore
32:07 - Call the data with real-time updates
40:13 - Writing to Firestore
43:42 - Scroll to last message
48:04 - Conclusion
#firebase #firestore #chat #app #tutorial