evgenyneu / Auk

An image slideshow for iOS written in Swift.
MIT License
277 stars 44 forks source link

Reload image if an error occurs #61

Open renanstig opened 7 years ago

renanstig commented 7 years ago

Hi,

I'm developing an image slider using your library, which I gotta say it's great, but I'm struggling to figure out a way to try to download the image again if there was an error while doing so at first time.

Do you have any idea how I can accomplish that?

Best regards, Renan.

evgenyneu commented 7 years ago

Hi @renanstig, good question. I have never done this, but there is an updatePage that might help.

scrollView.auk.updatePage(atIndex: 0, url: "https://bit.ly/moa_image")
renanstig commented 7 years ago

Hi @evgenyneu , it might help me, but I would have to track which image has failed to download, right? 🤔

evgenyneu commented 7 years ago

Ah, yes, you are right. I am afraid this is not possible with Auk at the moment. Sorry.