// calling getProfileMode { (mode) in print("Mode : ", mode) } func getProfileMode(completion: @escaping (String) -> Void) { // write firestore code here completion("true") }
// calling getProfileMode { (mode) in print("Mode : ", mode) } func getProfileMode(completion: @escaping (String) -> Void) { // write firestore code here completion("true") }