This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
1.0.0-pre
Pre-release
Pre-release
🎉 Thank you for supporting EasyFirebase! I'm a full-time student spending my free time on this library, so I apologize if there any bugs present. Feel free to contribute with a pull request or report buts in Issues!
New Features
Querying
Querying is here. Search for documents in a Swifty manner.
EasyFirestore.Querying.where(\Car.make, .equals, "Toyota") { cars in
// Handle your queried documents here...
}
For more information, check out README.md.
Indexable Documents
Conform your class to IndexableDocument
to index your documents! This allows you to easily keep track of how many documents are in a collection. This also will allow you to grab a random document easier.
class Car: IndexableDocument {
// These properties are inherited from Document
var id: String = UUID().uuidString
var dateCreated: Date = Date()
// And this shiny new property is inherited from IndexableDocument
var index: Int
// ...
}
Other Additions
- Easily generate
EasyUser
usernames and suggest new ones if they're taken (more info) - Ability to request updated email verification status from
EasyUser
objects
Minor Changes
- All auth management features have migrated to instance methods of
EasyUser
- All
EasyUser
objects now conform toIndexableDocument
instead ofDocument
Bug Fixes
- Fix iOS device compatability