tilltue / TLPhotoPicker

📷 multiple phassets picker for iOS lib. like a facebook
MIT License
1.88k stars 332 forks source link

Unable to change done button title ? #344

Open ZaidAhmad2468 opened 2 years ago

ZaidAhmad2468 commented 2 years ago

When I select multiple images from galary then its Done button looks likes hanged/stucked. Is there any way to change done button to loading indicator on pressing done button? like whatsapp doing.

comeonyoh commented 1 year ago

The first solution is you can inherit the TLPhotosPickerViewController and override selectedAssets. And then you can a protocol which confirm to TLPhotosPickerViewControllerDelegate and use it.

The second solution is you have to confirm TLPhotosPickerLogDelegate and implement select/deselect method. This method will be called before selectedAssets's count changes.