mshershnev
mshershnev
Hi guys. I fixed that issue. Here you can find solution: https://github.com/mshershnev/CodableFirebase Code example is here: https://github.com/alickbass/CodableFirebase/pull/86#issuecomment-584675760 I did pull request and hope that it will be merged soon: https://github.com/alickbass/CodableFirebase/pull/86
``` let encoder = FirestoreEncoder() encoder.dateEncodingStrategy = .custom { date, encoder in var container = encoder.singleValueContainer() try container.encode(Timestamp.init(date: date)) } let decoder = FirestoreDecoder() decoder.dateDecodingStrategy = .custom { decoder ->...
@otri try to add 4 extensions: ``` extension GeoPoint: GeoPointType {} extension Timestamp: TimestampType {} extension FieldValue: FieldValueType {} extension DocumentReference: DocumentReferenceType {} ```