CarouselImageLoader
public protocol CarouselImageLoader
Protocol used to load an image from url
-
Load image from url
Declaration
Swift
func loadImage(url: URL, completion: ((_ image: UIImage?, _ error: Error?) -> Void)?)
Parameters
url
image url
completion
callback with image on success or error on failure