Reputation: 1513
I have installed the firebase pod in my project and imported Firebase to my swift class but when i am trying to implement Firebase(url:"") function its not working it says :
Cannot call value of non-function type 'module Firebase'
I am using xcode 7.3.1
there is the pic of my code:
Upvotes: 2
Views: 966
Reputation: 1144
Which version of Firebase you are using? I'm assuming 3.0+, so you'll need to get the reference as follow:
let ref = FIRDatabase.database().reference()
Edit:
Make sure to add pod 'Firebase/Database'
in your podfile and then import FirebaseDatabase
Upvotes: 2