steve228uk / MessengerKit

:speech_balloon: A UI framework for building messenger interfaces on iOS
MIT License
1.48k stars 129 forks source link

Now users can download image from url & display automatically #48

Closed EnesKaraosman closed 4 years ago

EnesKaraosman commented 4 years ago

imageFromUrl case added to MSGMessageBody & displayable on UI, now we are not restricted with local image.

sjoness commented 4 years ago

Thanks for this @EnesKaraosman. Would you mind documenting it in the README?

EnesKaraosman commented 4 years ago

Hi Sam,

I guess pull requesting to wiki a bit complicated.

But you can add

case .imageFromUrl(URL) and

in the messages dataSource sample

MSGMessage(id: 9, body: .imageFromUrl(URL(string: "https://placeimg.com/640/480/any";)!), user: steve, sentAt: Date())

On 24 Oct 2019 17:14 +0300, Sam Jones notifications@github.com, wrote:

Thanks for this @EnesKaraosman. Would you mind documenting it in the README? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.