SwiftyMarkdown icon indicating copy to clipboard operation
SwiftyMarkdown copied to clipboard

Support for remote URLs for images

Open SimonFairbairn opened this issue 5 years ago • 2 comments

  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.

SimonFairbairn avatar Feb 01 '20 00:02 SimonFairbairn

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

simonward avatar Jun 01 '20 17:06 simonward

@SimonFairbairn could you attach an example of this?

NikitaSkripchenko avatar Jul 23 '20 10:07 NikitaSkripchenko