SwiftUI: Fetching data from Firestore in real-time

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 32

  • @gangalo68
    @gangalo68 4 роки тому +7

    What I like with Peters tutorials is that he do it "for real", not all code in one document and leaving the viewer to sort it out. This is great for me who still trying to grasp MVVM. Thanks!

  • @xingnanzhou8628
    @xingnanzhou8628 4 роки тому +2

    You did a great job! Gave me an clear idea of how to transfer data from firebase to an iPhone! Totally support your contribute, and gives you a thumbs up

  • @chrisgrayston6407
    @chrisgrayston6407 4 роки тому

    Please keep making videos, they are super helpful. Thank you!

  • @pickemparty
    @pickemparty 4 роки тому +3

    Can you show how that works for the Firebase Realtime database as well!?

  • @daehee7312
    @daehee7312 4 роки тому +1

    Thank you for your helpful video!!

  • @youngdomsey
    @youngdomsey 4 роки тому +1

    Great video, thanks

  • @fbetasoft
    @fbetasoft 2 роки тому +1

    Thanks a lot I implemented very easily. But why there are no these informations in Firebase website? for ex. we wrote viewModel.fetchData() inside onAppear(), but when I read firebase documents I couldn't find this info. Also in firebase there is no SwiftUI code option, but only storyboard and obj-c.

  • @abdullahalnutayfi8103
    @abdullahalnutayfi8103 3 роки тому

    Easy to understand, thank you

  • @joshkinney5091
    @joshkinney5091 3 роки тому

    I wish you added an image from firebase storage to this as well. It seems tutorials shy away from adding an image.

  • @mateusneves4168
    @mateusneves4168 3 роки тому +1

    Thank you for the tutorial, helped me a lot! I have a question: if I just want to get one document, like the first one store in Firestore, how do I get it? In other words, how to get just the author, nm and pages of the 1st document?

  • @orl123124
    @orl123124 2 роки тому

    nice excellent ! please keep making video do u have a video about how to upload some file to firebase ?

  • @anzhemeng8833
    @anzhemeng8833 3 роки тому

    Wonderful job, Sir! I think I have already accomplished this feature, but I want to do more: I am developing an app that features a leaderboard, so the list of data is only shown on one tab. However, every time I switch back to this leaderboard page, the table just fades away. I am not sure what is going on, can I make it stable?

  • @oztoygar
    @oztoygar 4 роки тому

    Excellent video! I have a question about linking the list to a DetailView. Referring to the video, how can I show the details of the book that I clicked from the list? Thank you in advance :)

  • @lukajackson4861
    @lukajackson4861 3 роки тому

    I have a question. isn't this an expensive operation though? we are just creating a whole new array for just one change in the document. imagine a real-time chat application. users are sending messages left and right. would this be the correct implementation in such a case?

  • @itskakers
    @itskakers 3 роки тому

    Thank you for the video! I followed your code structure with my own documents/data but my Xcode preview crashes when I try to preview my List. Any idea on why this happens? My code is virtually identical to yours.

  • @itskakers
    @itskakers 3 роки тому

    Thank you for the video! I followed your code structure with my own documents/data but my Xcode preview crashes when I try to preview my List. Two questions:
    Is there a limit to how many variables you can store in your [Book] array?
    & is there a limit to how many variables you can display in your list?

  • @pickemparty
    @pickemparty 4 роки тому +1

    your solution to using a "dynamic" list of items from Firebase doesnt seem to work well when you have a tab bar and the list of items. Along with the behavior of when someone clicks on an item in the list the user should navigate to a "detailed view" where the tab bar would need to be hidden and when they navigate back the tab bar should reappear and display the list again.... it seems to make the list disappear which makes no sense!?

    • @hp6545
      @hp6545 4 роки тому

      Its permanently firing requests.... it doesnt matter if its integrated to a tab bar or single view.

    • @tuckersnow609
      @tuckersnow609 2 роки тому

      Having the same issue.

  • @btechstuff
    @btechstuff 2 роки тому

    Thank you for a great video. It seems though, that my code while I am setting breakpoints, is bypassing all of the document fetching. It is skipping over the addSnapshotListener and all of that and just going to the end of the function. Any idea what is happening?

  • @abdullahalnutayfi8103
    @abdullahalnutayfi8103 3 роки тому

    I have a question: How to fetch single value like username (first name). For instance, when I login, I want to show ( logged in by "\(username)")

  • @ecptavares
    @ecptavares 4 роки тому

    hi what if my collection gets bigger and reachs 4.000 records.How would I handle this to avoid slow loading?Any example or tutorial?thank you

  • @123gorem
    @123gorem 3 роки тому

    I get this error massage: cannot call value of non-function type '[String: Any]' in the "implementing the view model" part. Someone who can help me?

  • @mochithemaltese
    @mochithemaltese 4 роки тому

    Is it normal that the VM gets called for every row of data it loads?

  • @jofresh228
    @jofresh228 3 роки тому

    How do you fetch an array in swiftui with the firestore datas? Thank you

  • @jorhoto7064
    @jorhoto7064 4 роки тому

    Hi, is Firestore already available for Unity? Thanks!!

  • @aleksneso634
    @aleksneso634 3 роки тому

    How I can shuffle the documents?

  • @anandaedla9993
    @anandaedla9993 4 роки тому

    gcloud firestore export gs://[BUCKET_NAME] how to use command ?
    how to export joson of cloud firestore