fix: save photo duplicate
This commit is contained in:
parent
0e7d4445f5
commit
553402bee5
|
@ -52,8 +52,6 @@ extension PhotoLibraryService {
|
||||||
return ImagePipeline.shared.imagePublisher(with: url)
|
return ImagePipeline.shared.imagePublisher(with: url)
|
||||||
.handleEvents(receiveSubscription: { _ in
|
.handleEvents(receiveSubscription: { _ in
|
||||||
impactFeedbackGenerator.impactOccurred()
|
impactFeedbackGenerator.impactOccurred()
|
||||||
}, receiveOutput: { response in
|
|
||||||
self.save(image: response.image)
|
|
||||||
}, receiveCompletion: { completion in
|
}, receiveCompletion: { completion in
|
||||||
switch completion {
|
switch completion {
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
|
|
Loading…
Reference in New Issue