Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstration of WIP Firestore Codable #609

Closed
wants to merge 10 commits into from
Closed

Demonstration of WIP Firestore Codable #609

wants to merge 10 commits into from

Conversation

paulb777
Copy link
Member

@paulb777 paulb777 commented Dec 19, 2018

This is for demonstration only currently and not intended for merging.

This converts part of the Firestore quickstart to use the Codable implementation at firebase/firebase-ios-sdk#2178.

Note that this is based on the original contribution from firebase/firebase-ios-sdk#838 and the API requested by @wilhuff at firebase/firebase-ios-sdk#627 (comment).

The next step is resolving this difference and converging.

Copy link
Contributor

@morganchen12 morganchen12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@@ -74,7 +74,7 @@ class RestaurantsTableViewController: UIViewController, UITableViewDataSource, U
return
}
let models = snapshot.documents.map { (document) -> Restaurant in
if let model = try? Firestore.Decoder().decode(Restaurant.self, from: document.data()) {
if let model = try? document.data(as:Restaurant.self) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: space after colon

@paulb777
Copy link
Member Author

Replaced by #787

@paulb777 paulb777 closed this Aug 31, 2019
@paulb777 paulb777 deleted the pb-codable branch August 31, 2019 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants