@@ -9,7 +9,7 @@ import HXPhotoPicker
9
9
// import Photos
10
10
11
11
extension HybridMultipleImagePicker {
12
- func getResult( _ asset: PhotoAsset ) async throws -> Result {
12
+ func getResult( _ asset: PhotoAsset ) async throws -> PickerResult {
13
13
let urlResult = try await asset. urlResult ( )
14
14
let url = urlResult. url
15
15
@@ -22,20 +22,20 @@ extension HybridMultipleImagePicker {
22
22
let type : ResultType = . init( fromString: asset. mediaType == . video ? " video " : " image " ) !
23
23
let thumbnail = asset. phAsset? . getVideoAssetThumbnail ( from: url. absoluteString, in: 1 )
24
24
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)
40
40
}
41
41
}
0 commit comments