BSImagePicker
BSImagePicker copied to clipboard
Limit number of image or video
If you want to limit number of image or video when select, set this:
imagePicker.settings.fetch.assets.supportedMediaTypes = [.image(max: 2), .video(max: 1)]
And when you select the third image, it should invoke this function:
func imagePicker(_ imagePicker: ImagePickerController, didReachSelectionLimitForType type: PHAssetMediaType)
I don't mind adding a per asset type selection limit. But this to me looks like it can be confusing to use as there now is multiple ways to set a selection limit.
Do you think there is any way you can re-think how it is implemented?