CDMarkdownKit icon indicating copy to clipboard operation
CDMarkdownKit copied to clipboard

Asynchronous images

Open JBKaloya opened this issue 7 years ago • 3 comments

What did you do?

I have images that are between some paragraphs in my markdown code

What did you expect to happen?

I want to load asynchronously my images. I've tried to change the match function with a DispatchQueue.main.async in the CDMarkdownImage.swift but it doesn't display the images at all.

What happened instead?

The images are loading well but they are synchronized with the rest of the rendering. The view takes a while to load.

CDMarkdownKit Environment

CDMarkdownKit version: 1.0 Xcode version: 10.1 Swift version: 3 Platform(s) running CDMarkdownKit: IOS **macOS version running Xcode:**10.14.3

JBKaloya avatar Feb 07 '19 18:02 JBKaloya

@JBKaloya this is a good feature request. Though I have a lot going on right now and am not sure when I will get around to attempting to implement it. Feel free to fork and continue trying on your own. But it realistically may be a few weeks until I give this a try.

chrisdhaan avatar Apr 15 '19 21:04 chrisdhaan

Thanks for your prompt reply! I will definitely keep you updated if I manage to implement this enhancement on my own.

JBKaloya avatar Apr 16 '19 16:04 JBKaloya

This is a much-needed requirement!! @JBKaloya @chrisdhaan

rizwan95 avatar Feb 25 '20 13:02 rizwan95