SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.64k stars 275 forks source link

Support for remote URLs for images #76

Open SimonFairbairn opened 4 years ago

SimonFairbairn commented 4 years ago
  1. Should check a local cache first which will populate the NSAttributedString instantly if the image is found
  2. Otherwise starts a url request. On completion:
    1. If the image request is successful, caches the image
    2. 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.
simonward commented 4 years ago

Consider a configuration closure to handle loading of the image URL.

NikitaSkripchenko commented 4 years ago

@SimonFairbairn could you attach an example of this?