diff --git a/Sources/EasyFirebase/Services/Auth/EasyUser.swift b/Sources/EasyFirebase/Services/Auth/EasyUser.swift index 0880eb2..db8c1f0 100644 --- a/Sources/EasyFirebase/Services/Auth/EasyUser.swift +++ b/Sources/EasyFirebase/Services/Auth/EasyUser.swift @@ -306,9 +306,9 @@ public extension EasyUser { - parameter type: The type of the user. - parameter completion: The completion handler. */ - func updatePhoto(with data: Data, ofUserType type: T.Type, completion: @escaping (Error?) -> Void = { _ in }) where T: EasyUser { + func updatePhoto(with data: Data, ofUserType type: T.Type, progress: @escaping (Double) -> Void = { _ in }, completion: @escaping (Error?) -> Void = { _ in }) where T: EasyUser { guard assertAuthMatches() else { return } - EasyStorage.put(data, to: StorageResource(id: id, folder: "Profile Images")) { [self] url in + EasyStorage.put(data, to: StorageResource(id: id, folder: "Profile Images"), progress: progress) { [self] url in guard let url = url else { return } updatePhoto(with: url, ofUserType: type, completion: completion) }