tilltue / TLPhotoPicker

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

convert UIImage to TLPHAsset and inset into selectedAssets array #310

Closed Vishal96P closed 3 years ago

Vishal96P commented 3 years ago

Hello

i am using TLPhotoPicker and and its grate for multiple image and video selection after selecting images i am displaying them into CollectionView and then after on didSelect of collection view i am open photoeditor after editing done i am getting edited image as UIImage so now i want to insert that image in selectedAssets array but i am not able to insert UIImage in TLPHAsset array can you please tell me how to convert UIImage To TLPHAsset and the insert into array

i got this error while inset in array self.selectedAssets.insert(image, at: imageTags) Cannot convert value of type 'UIImage' to expected argument type 'TLPHAsset'

Please help me i am stuck