Skip to content

Commit

Permalink
⚡️ :: 사진 확장자 표시하기
Browse files Browse the repository at this point in the history
  • Loading branch information
BJCHO0501 committed Sep 9, 2023
1 parent bac10a1 commit bb07021
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension SDPhotoPickerCoordinator {

private func processSinglePhoto(_ pickerResults: [PHPickerResult]) {
guard let pickerResult = pickerResults.first else { return }
print(pickerResult.itemProvider.suggestedName)
print(pickerResult.itemProvider.registeredContentTypes.first)
pickerResult.itemProvider.loadObject(ofClass: UIImage.self) { image, _ in
if let image = image as? UIImage {
self.parent.singleSelection?.wrappedValue = image
Expand All @@ -44,7 +44,7 @@ extension SDPhotoPickerCoordinator {
var errorCount = 0

pickerResults.enumerated().forEach { pickerResult in
debugPrint(pickerResult.element.itemProvider.suggestedName)
debugPrint(pickerResult.element.itemProvider.registeredContentTypes)
pickerResult.element.itemProvider.loadObject(ofClass: UIImage.self) { image, _ in
if let image = image as? UIImage {
enumeratedSelection.append((pickerResult.offset, image))
Expand Down

0 comments on commit bb07021

Please sign in to comment.