Attempting to save the image
Type 'Storage' has no member 'storage' error when set to let storageRef=Storage.storage().reference().child("profile_image").child(fileName").
I have imported the Firebase module as follows, but please let me know if there is anything wrong.
import UIKit
import FirebaseAuth
import FirebaseFirestore
import FirebaseCore
import FirebaseStorage
It appears to be caused by a simple spelling error.st ege instead of st ege
wrong:
let storageRef=Storage.storege().reference().child("profile_image").child(fileName)
~~~~~~~
positive:
let storageRef=Storage.storage().reference().child("profile_image").child(fileName)
© 2024 OneMinuteCode. All rights reserved.