How to get an image to preview any website from its metadata in iOS

I am making a chat application and recently watched applications such as WhatsApp, Viber, Skype when sending any link, the chat bubble changes its text link to view the image with the link, as shown in the figure.

Can anyone tell me how to do this in iOS.

enter image description here

+5
source share
1 answer

If your application has server-side avia, this problem can be solved on the server side by creating a lower-quality preview thumbnail that will be sent to your client application, you still need to manually track which files you have. In this case SDWebImage may be useful (url: http://cocoadocs.org/docsets/SDWebImage/3.7.5/ ).

The problem is that there is no way to preview the image without actually loading the data itself, so why my bet will be on the server side of this solution.

0
source

Source: https://habr.com/ru/post/1243733/


All Articles