@@ -9,7 +9,7 @@ import HXPhotoPicker
99// import Photos
1010
1111extension HybridMultipleImagePicker {
12- func getResult( _ asset: PhotoAsset ) async throws -> Result {
12+ func getResult( _ asset: PhotoAsset ) async throws -> PickerResult {
1313 let urlResult = try await asset. urlResult ( )
1414 let url = urlResult. url
1515
@@ -22,20 +22,20 @@ extension HybridMultipleImagePicker {
2222 let type : ResultType = . init( fromString: asset. mediaType == . video ? " video " : " image " ) !
2323 let thumbnail = asset. phAsset? . getVideoAssetThumbnail ( from: url. absoluteString, in: 1 )
2424
25- return Result ( localIdentifier: phAsset!. localIdentifier,
26- width: asset. imageSize. width,
27- height: asset. imageSize. height,
28- mime: mime,
29- size: Double ( asset. fileSize) ,
30- bucketId: nil ,
31- realPath: nil ,
32- parentFolderName: nil ,
33- creationDate: creationDate > 0 ? Double ( creationDate) : nil ,
34- crop: false ,
35- path: " file:// \( url. absoluteString) " ,
36- type: type,
37- duration: asset. videoDuration,
38- thumbnail: thumbnail,
39- fileName: phAsset? . fileName)
25+ return PickerResult ( localIdentifier: phAsset!. localIdentifier,
26+ width: asset. imageSize. width,
27+ height: asset. imageSize. height,
28+ mime: mime,
29+ size: Double ( asset. fileSize) ,
30+ bucketId: nil ,
31+ realPath: nil ,
32+ parentFolderName: nil ,
33+ creationDate: creationDate > 0 ? Double ( creationDate) : nil ,
34+ crop: false ,
35+ path: " file:// \( url. absoluteString) " ,
36+ type: type,
37+ duration: asset. videoDuration,
38+ thumbnail: thumbnail,
39+ fileName: phAsset? . fileName)
4040 }
4141}
0 commit comments