Reputation: 145
I have received the error of "Value Type of 'FIRDatabaseReference' has no member 'observeSingleEvent'" in my firebase app. I found this code on the firebase website but unfortunately it is not working in my app. I am writing the code to my app in Swift 3 and am wondering if this could possibly be the problem.
Upvotes: 2
Views: 682
Reputation: 9945
Try :-
ref.observeSingleEventOfType(.Value, withBlock : {(snapShot) in
print(snapShot)
})
What you are using is a syntax to Swift3
Upvotes: 4