FirebaseUI v4.4.0
Added support for Cloud Firestore.
- Added
FUIBatchedArray
,FUIFirestoreCollectionViewDataSource
,FUIFirestoreTableViewDataSource
.
Primary differences between Firebase DatabaseUI and Firebase FirestoreUI:
- FirestoreUI has less powerful client-side sorting and filtering options. Use Firestore's built-in query filtering and sorting instead, lowering the bandwidth used by your app and the complexity of your source code. This comes with a few caveats, and over all is slightly less flexible than DatabaseUI, but carries less complexity.
- Decoupled queries from FUIBatchedArray in FirestoreUI (vs FUIArray in DatabaseUI). This allows you to modify the query on any array and receive a diff update in the array's delegate. In practice this means you can change the query behind your data source and animate an update with the new query's contents. To accomplish this, FUIBatchedArray computes a diff between the old and new data without any Firestore metadata. Don't do this for large queries, as it will be slow.
- FirestoreUI has no need for indexed arrays, since everything can be done through Firestore's querying features.