fix: save photo duplicate

This commit is contained in:
CMK 2021-07-07 12:26:34 +08:00
parent 0e7d4445f5
commit 553402bee5
1 changed files with 0 additions and 2 deletions

View File

@ -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):