Handle NSItemProvider public.image data types. (#3541)

This commit is contained in:
Stefan Ceriu
2024-11-20 16:12:27 +02:00
committed by GitHub
parent acd670ab56
commit b2137ad01d
4 changed files with 134 additions and 95 deletions
@@ -69,7 +69,7 @@ struct PhotoLibraryPicker: UIViewControllerRepresentable {
photoLibraryPicker.userIndicatorController.retractIndicatorWithId(Self.loadingIndicatorIdentifier)
}
provider.loadFileRepresentation(forTypeIdentifier: contentType.identifier) { [weak self] url, error in
provider.loadFileRepresentation(forTypeIdentifier: contentType.type.identifier) { [weak self] url, error in
guard let url else {
Task { @MainActor in
self?.photoLibraryPicker.callback(.error(.failedLoadingFileRepresentation(error)))