Here's what the methods that are currently there [should] do:
once user has selected however many photos they want to send, and they click send, getMediaForAssets gets called on those assets
for each asset in the array of assets, the method getFullImageForAsset gets called and retrieves the full-size image for that asset. (there's also getSmallImageForAsset and getVideoForAsset)
the storage client method to store the file gets called, which returns a url
the image with urlString as a key is cached in the Haneke shared cache
the message is sent with ChatSpotClient method sendMessage, with the urlstring as the attachment
in the ChatMessageCell class, the image is fetched from the cache (if it's not in the cache, it gets downloaded from the url) and displayed
Here's what the methods that are currently there [should] do:
Here are some resources: https://stackoverflow.com/a/32601838/3605761 https://github.com/Haneke/HanekeSwift