Add your GoogleService-Info.plist to project and then run
Download a configuration file for your iOS app
just call this func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
if let pickedImage = info[UIImagePickerControllerEditedImage] as? UIImage {
let path = "YourFilePath\YourFileName" //replace this line as per your file structure.
PostServiceFireBase.create(for: pickedImage, path: path) { (imageURL) in
guard let imageURL = imageURL else {
print("Image url not found")
return
}
let urlString = imageURL
print("image url :: \(urlString)")
}
}
and copy FirebaseBaseServices to your project