SwiftyMarkdown
SwiftyMarkdown copied to clipboard
Support for remote URLs for images
- Should check a local cache first which will populate the NSAttributedString instantly if the image is found
- Otherwise starts a url request. On completion:
- If the image request is successful, caches the image
- Sends out a notification to give the user a chance to reload the string. If it was successful, the image will now be cached and will appear in the NSAttributedString.
Consider a configuration closure to handle loading of the image URL.
@SimonFairbairn could you attach an example of this?