Relative Content

Tag Archive for iosfirebasegoogle-cloud-firestoreswiftui

View is emtpy after onAppear call to firebase firestore after button click (From another view)

I am trying to populate a view when a button is tapped on a different view. When I used my mock data, everything worked fine. However, when I switch to calling my firestore db data, nothing shows up. I’m still a few months into learning swiftui but I called on db the same way in a different part of my project which worked well. Here is an example of the code I am using.