MD Sazid Hasan Dip
MD Sazid Hasan Dip

Reputation: 1513

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

Upvotes: 2

Views: 966

Answers (1)

orxelm
orxelm

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

Related Questions