MMMLoadableImage
Objective-C
@protocol MMMLoadableImage <MMMLoadable>
Swift
protocol MMMLoadableImage : MMMLoadableProtocol
We need thumbnail images in a couple of places and they are not typically accessible immediately even if they sit in a local cache or DB. So here is a simple protocol based on MMMLoadable (which is kind of a “promise” object) to wrap such images.
-
The image itself. As always, this is available only when
contentsAvailable
is YES.Declaration
Objective-C
@property (nonatomic, readonly, nullable) UIImage *image;
Swift
var image: UIImage? { get }