Open kencoken opened 3 years ago
I can further confirm that this only happens when I install the package using the Swift Package Manager and not CocoaPods.
If importing the relevant sub-package directly then the compilation works:
import CombineFirebaseFirestore
So it seems that something is going wrong with the global import.
Yes you are right, import issue is there with SPM version, you have to use respective module import as of now, new PR is welcomed on this.
Apologies if am missing something as a bit of a Combine novice. I have installed CombineFirebase 0.3.0 and Firebase 7.11.1 and am trying to follow the example from the readme file for listening to a collection in Firestore:
However, Swift is unable to find the
publisher()
method ondb.collection("cities")
with only a:I can see this exists on the Query object on the source code here so am unsure why
db.collection("cities")
which returns aCollectionReference
(which derives from Query) can not find this definition.