Beginning Firebase for iOS, Episode 4: Create a Repository & Read Data | raywenderlich.com

Use the repository pattern to give your app access to the Firestore database, read data from the database, and display it as a SwiftUI flash card.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/22029618-beginning-firebase-for-ios/lessons/4

image
why we need @publish here?