MD.Sazid Hasan Dip MD.Sazid Hasan Dip - 5 months ago 66
iOS Question

Firebase(url:"") function is not working

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:

enter image description here

Answer

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()