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'
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