How to generalize Firestore Object behavior in Swift to avoid repetition? – Ios swift
I am writing an iOS app in Swift, using Firestore as a database. I have classes representing my Firestore objects that look like this: class FirestoreObject: Decodable, Hashable, ObservableObject { enum CodingKeys: String, CodingKey { case id case attributeA =…