RSDImageWrapperDelegate
public protocol RSDImageWrapperDelegate
The RSDImageWrapperDelegate is a singleton delegate that can be used to customize the rules for fetching
an image using the RSDImageWrapper. If defined and attached to the RSDImageWrapper using the static property
sharedDelegate then the image wrapper will ask the delegate for the appropriate image.
-
Get an image of the appropriate size.
Declaration
Swift
func fetchImage(for size: CGSize, with imageName: String, callback: @escaping ((UIImage?) -> Void))Parameters
sizeThe size of the image to return.
imageNameThe name of the image
callbackThe callback with the image, run on the main thread.
View on GitHub
RSDImageWrapperDelegate Protocol Reference