RSDFetchableImageThemeElement

public protocol RSDFetchableImageThemeElement : RSDImageThemeElement

RSDFetchableImageThemeElement defines an image that can be fetched asynchronously.

  • A method for fetching the image.

    Declaration

    Swift

    func fetchImage(for size: CGSize, callback: @escaping ((UIImage?) -> Void))

    Parameters

    size

    The size of the image to return.

    callback

    The callback with the image, run on the main thread.