DragonCherry / AssetsPickerViewController

Powerfully Customizable - Multiple Photo & Video Picker Controller
MIT License
388 stars 136 forks source link

assetsPicker Called multiple times. #83

Closed Mahesh160393 closed 4 years ago

Mahesh160393 commented 4 years ago

When i select one image func assetsPicker(controller: AssetsPickerViewController, selected assets: [PHAsset]) {} getting called multiple time of number of images selected.

XCode - 11.6 Pod - AssetsPickerViewController (2.9.2)

Here is my method :

func assetsPickerCannotAccessPhotoLibrary(controller: AssetsPickerViewController) {}

func assetsPickerDidCancel(controller: AssetsPickerViewController) {}

func assetsPicker(controller: AssetsPickerViewController, selected assets: [PHAsset]) { // my code }

func assetsPicker(controller: AssetsPickerViewController, shouldSelect asset: PHAsset, at indexPath: IndexPath) -> Bool { return true }

func assetsPicker(controller: AssetsPickerViewController, didSelect asset: PHAsset, at indexPath: IndexPath) {}

func assetsPicker(controller: AssetsPickerViewController, shouldDeselect asset: PHAsset, at indexPath: IndexPath) -> Bool { return true }

func assetsPicker(controller: AssetsPickerViewController, didDeselect asset: PHAsset, at indexPath: IndexPath) {

}

@DragonCherry