File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Modules/Sources/WPMediaPicker Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1111
1212@import MobileCoreServices;
1313@import AVFoundation;
14+ @import UniformTypeIdentifiers;
1415
1516static CGFloat const IPhoneSELandscapeWidth = 568 .0f ;
1617static CGFloat const IPhone7PortraitWidth = 375 .0f ;
@@ -999,7 +1000,8 @@ - (void)configureBadgeViewForCell:(WPMediaCollectionViewCell *)cell withAsset:(i
9991000 NSString *uttype = [asset UTTypeIdentifier ];
10001001
10011002 if ([self .options.badgedUTTypes containsObject: uttype]) {
1002- NSString *tagName = (__bridge_transfer NSString *)(UTTypeCopyPreferredTagWithClass ((__bridge CFStringRef)uttype, kUTTagClassFilenameExtension ));
1003+ UTType *type = [UTType typeWithIdentifier: uttype];
1004+ NSString *tagName = type.preferredFilenameExtension ;
10031005 cell.badgeView .label .text = [tagName uppercaseString ];
10041006 cell.badgeView .hidden = NO ;
10051007 return ;
You can’t perform that action at this time.
0 commit comments