Files
firebase-ios-sdk/Example/FirestoreSample
Peter FrieseandBrianna Zamora ba999200a8 Add animations to @FirestoreQuery (#11437)
* Feature: Add animations to @FirestoreQuery
- Adds a SwiftUI `Animation` parameter to the FirebaseQuery initializer.
- If animation is not `nil` then setting the data to the published value will be executed inside of a `withAnimation` block (with the given `Animation`)
* feature: Add `FavouriteFruitsAnimationView`
This view demostrates how to use the ``FirestoreQuery`` property wrapper, using the `animation` parameter to make sure list items are animated when being added or removed.
* Explore alternative strategy for animating changes
This is an alternatice to the approach for animating changes in PR #10813
* Update sample project to include a view with and without animations
---------

Signed-off-by: Peter Friese <peter@peterfriese.de>
Co-authored-by: Brianna Zamora <briannadoubt@icloud.com>
2023-06-27 14:13:21 +02:00
..

Firestore Sample

This sample demonstrates how to use Firestore. At the moment, it only contains code that shows how to use the @FirestoreQuery property wrapper.

How to use

  1. Install the Firebase emulator suite (see https://firebase.google.com/docs/emulator-suite/install_and_configure for details)
  2. Launch the local emulator suite by running the run.sh script in this folder
  3. You can now run FirestoreSample on a local iOS Simulator, the app will communicate with the local Firebase Emulator suite