Skip to content

Commit 3a08c9e

Browse files
author
Oleksii Dykan
committed
Update README
1 parent 4cfd137 commit 3a08c9e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@ Firestore.firestore().collection("data").document("one").getDocument { (document
8686
}
8787
```
8888

89+
### How to use `GeoPoint` and `DocumentRefence` in Firestore
90+
91+
In order to use these 2 types with `Firestore`, you need to add the following code somewhere in your app:
92+
93+
```swift
94+
extension DocumentReference: DocumentReferenceType {}
95+
extension GeoPoint: GeoPointType {}
96+
```
97+
98+
and now they become `Codable` and can be used properly with `FirestoreEncoder` and `FirestoreDecoder`.
99+
89100
## Integration
90101

91102
### CocoaPods (iOS 9+)

0 commit comments

Comments
 (0)