Merge pull request #618 from nrikiji/master
Update preferredAssetRepresentationMode to PHPickerViewController for video.
This commit is contained in:
commit
7c24fba9e8
|
@ -147,6 +147,10 @@
|
||||||
PHPickerConfiguration *config = [[PHPickerConfiguration alloc] init];
|
PHPickerConfiguration *config = [[PHPickerConfiguration alloc] init];
|
||||||
config.filter = type == IMAGE ? [PHPickerFilter imagesFilter] : type == VIDEO ? [PHPickerFilter videosFilter] : [PHPickerFilter anyFilterMatchingSubfilters:@[[PHPickerFilter videosFilter], [PHPickerFilter imagesFilter]]];
|
config.filter = type == IMAGE ? [PHPickerFilter imagesFilter] : type == VIDEO ? [PHPickerFilter videosFilter] : [PHPickerFilter anyFilterMatchingSubfilters:@[[PHPickerFilter videosFilter], [PHPickerFilter imagesFilter]]];
|
||||||
|
|
||||||
|
if(type == VIDEO) {
|
||||||
|
config.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent;
|
||||||
|
}
|
||||||
|
|
||||||
if(multiPick) {
|
if(multiPick) {
|
||||||
config.selectionLimit = 0;
|
config.selectionLimit = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue