As per firebase official documentation for swift we should use following line to enable persistence in iOS.
Firebase.defaultConfig().persistenceEnabled = true
But if we use the above line in swift 3.0 it gives error.
Any idea how to enable persistence in swift 3.0?
Try the following:
FIRDatabase.database().persistenceEnabled = true