ImageLoader

public class ImageLoader: NSObject

A class used to load images asynchronously

  • Initializes an imageLoader according the selected implementation

    Declaration

    Swift

    public override init()
  • Load an image with the configured adapter

    Declaration

    Swift

    public func loadImage(url: URL, imageView: UIImageView)

    Parameters

    url

    the URL of the image to be loaded

    imageView

    the imageView that should contain the image loaded

  • load an image using a placeholder in the meantime

    Declaration

    Swift

    public func loadImage(url: URL, placeholder: UIImage, imageView: UIImageView)

    Parameters

    url

    the URL of the image to be loaded

    placeholder

    the UIImage that should be used as a placeholder

    imageView

    the imageView that should contain the image loaded