Build a SwiftUI chat app with Firestore from scratch

Build a SwiftUI chat app with Firestore from scratch

58.213 Lượt nghe
Build a SwiftUI chat app with Firestore from scratch
💬 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: https://unsplash.com/ ➡ Firebase Console: https://console.firebase.google.com/ ➡ Firebase iOS SDK Github repo: https://github.com/firebase/firebase-ios-sdk ➡ Cloud Firestore Data model: https://firebase.google.com/docs/firestore/data-model ➡ Get to know Firestore YouTube video: https://www.youtube.com/watch?v=v_hR4K4auoQ ➡ ScrollViewReader documentation: https://developer.apple.com/documentation/swiftui/scrollviewreader ➡ scrollTo(_:anchor:) documentation: https://developer.apple.com/documentation/swiftui/scrollviewproxy/scrollto(_:anchor:) 👩🏻‍💻 Source code on Github: ➡ https://github.com/stephdiep/ChatApp ✏️ Watch without ads, and access the written version and source files: ➡ Part 1: https://designcode.io/quick-apps-swiftui-chat-app-1 ➡ Part 2: https://designcode.io/quick-apps-swiftui-chat-app-2 ➡ Part 3: https://designcode.io/quick-apps-swiftui-chat-app-3 🪄 Join our channel and unlock members-only perks: ➡ https://www.youtube.com/channel/UCTIhfOopxukTIRkbXJ3kN-g/join 👋🏻 Let's connect! ➡ Twitter: https://twitter.com/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