Skip to content

Commit

Permalink
Update PHPicker.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed May 18, 2024
1 parent 9edcfed commit 743dbaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/ImagePickerSwiftUI/PHPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ public struct PHPicker: UIViewControllerRepresentable {
if let videoURL = try await loadVideo(result: result) {
parent.videoURLs.append(videoURL)
}
if results.last == result {
parent.isPresented = false
}
} catch {
print(error.localizedDescription)
}
}

parent.isPresented = false
}
}

Expand Down

0 comments on commit 743dbaf

Please sign in to comment.