I convert my code to swift 3 , and Im getting the following error when trying to read some data:
Cannot convert value of type '(_) -> ()' to expected argument type '((Error) -> Void)?'
Ref.observe(.value, with: { snapshot in
print(snapshot)
}, withCancel: { error in //the error appear here
print(error.description)
})
ref.observe(.value, with: { (snap: FIRDataSnapshot) in }, withCancel: { (error: Error) in })
– gasho