SwiftUI Firebase Chat 15: Firestore Codables Model Objects

  Рет қаралды 8,972

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 19
@30guarino
@30guarino 2 жыл бұрын
I knew it was Peter! … am subscribed to his channel and his voice sounds like the villain from the movie Die Hard with Vengeance
@rickywitherspoon2861
@rickywitherspoon2861 2 жыл бұрын
What’s his channel called?
@30guarino
@30guarino 2 жыл бұрын
@@rickywitherspoon2861 Peter Friese
@dongxiang9370
@dongxiang9370 Жыл бұрын
Lovely tutorial. A lot of materials and techniques learnt. Keep good work. One suggestion is to have a framework/methodologies summarised at end and start of the tutorial. Many thanks for efforts made.....
@johnnyadkins9312
@johnnyadkins9312 2 жыл бұрын
Awesome videos. Just learning SwiftUI now, but had a question. Liked adding chat to my project and followed your series here, but now need to pull additional data from Firebase but cannot find workaround for your “FirebaseManager” file var “currentUser: ChatUser? I want a separate call say UserProfile? That pulls even more data. Running into a compile error. Can I implement multiple vars that read from a different “ChatUser:Codable, identifiable “
@johnnyadkins9312
@johnnyadkins9312 2 жыл бұрын
Never mind. I’m an idiot. Keep up good work. 😀
@unknownerror999
@unknownerror999 3 ай бұрын
guys, what about send an image with message? where is it? thank
@sl0wsn0w
@sl0wsn0w 2 жыл бұрын
Hey. First of all thank you for your videos. I learned a lot from them. I have an issue with my Xcode (13.2.1). Maybe you can help me? I am not able to use my keyboard in life preview (Canvas). In simulator is everything ok, but when I run preview it won't work. Looking forward to hear from you.
@jemmytech5474
@jemmytech5474 2 жыл бұрын
Same issue but I ignore. I use simulator
@toyohisakuroda8449
@toyohisakuroda8449 2 жыл бұрын
mine is working perfectly fine on canvas but not on the simulator, it got stuck in the login page and won't login to main message page. how you guys get your simulator working?
@mysterouis30
@mysterouis30 2 жыл бұрын
Getting an error at 11:18 "Initializer for conditional binding must have Optional type, not 'RecentMessage'"
@LetsBuildThatApp
@LetsBuildThatApp 2 жыл бұрын
I might open up some paid office sessions for folks that need help, let me know if you're interested.
@mysterouis30
@mysterouis30 2 жыл бұрын
@@LetsBuildThatApp I’m definitely interested, I’ve been stuck at this problem for a while.
@hide-kun1660
@hide-kun1660 Жыл бұрын
Hey, Did you find the solution?
@yakitorisamurai3583
@yakitorisamurai3583 Жыл бұрын
add a ? on the try. if let rm = try? change.document.data(as: RecentMessage.self) { self.recentMessages.insert(rm, at: 0) }
@hide-kun1660
@hide-kun1660 Жыл бұрын
Well, all you have to do is remove if else conditions and it worked for me!! If I’m correct, new swift versions or updates doesn’t require you to use if else condition to use that initialization.
@hickam16
@hickam16 2 жыл бұрын
Not that anybody would care, but I accomplished something similar without downloading a dependency in a previous application with: let jsonData = try JSONSerialization.data(withJSONObject: snap.data(), options: []) let item = try JSONDecoder().decode(BusinessInfoModel.self, from: jsonData) To send the data, I added the following function inside my structs: var asDictionary : [String:Any] { let mirror = Mirror(reflecting: self) let dict = Dictionary(uniqueKeysWithValues: mirror.children.lazy.map({ (label:String?, value:Any) -> (String, Any)? in guard let label = label else { return nil } return (label, value) }).compactMap { $0 }) return dict }
@LetsBuildThatApp
@LetsBuildThatApp 2 жыл бұрын
I did something similar to this in the past, good to have Firestore libraries handle this out of the box now.
@hickam16
@hickam16 2 жыл бұрын
@@LetsBuildThatApp true, love your online courses and yt vids btw. Thank you for what you do :)
SwiftUI Firebase Chat 14: Save and Fetch Recent Messages
41:44
Lets Build That App
Рет қаралды 8 М.
Getting started with Cloud Firestore on Apple platforms
23:31
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 127 МЛН
SwiftUI Firebase Chat 12: Fetch Messages Documents with Snapshot Listener
29:31
SwiftUI Animations - 3 Simple Techniques (ft. Mark Moeykens)
21:43
CodeWithChris
Рет қаралды 21 М.
Build an iOS Video Calling App with SwiftUI
14:23
Stream Developers
Рет қаралды 3,7 М.
SwiftUI Firebase Chat 16: Removing Snapshot Listeners
37:11
Lets Build That App
Рет қаралды 13 М.
Cloud Firestore Get Data (and other operations) with SwiftUI
41:31
CodeWithChris
Рет қаралды 42 М.
SwiftUI Firebase Chat 11: Send and Save Messages to Firestore
29:31
Lets Build That App
Рет қаралды 9 М.
SwiftUI Firebase Chat 08: Show All Users for Creating Message
28:53
Lets Build That App
Рет қаралды 9 М.
Building a to-do list app with SwiftUI and Firebase - Pt 1
53:56
App Ideas for Your iOS Developer Portfolio
9:20
Sean Allen
Рет қаралды 36 М.
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 127 МЛН