MMMLoadableImageProxy
Objective-C
@interface MMMLoadableImageProxy : MMMLoadableProxy <MMMLoadableImage>
Swift
class MMMLoadableImageProxy : MMMLoadableProxy, MMMLoadableImage
Sometimes an object implementing MMMLoadableImage is created much later than when it would be convenient to have one.
A proxy can be used in this case, so the users still have a reference to MMMLoadableImage and can begin observing it or request a sync asap. Later when the actual reference is finally available it is supplied to the proxy which begins mirroring its state.
As always, this is meant to be used only in the implementation, with only id
-
The image being proxied.
Declaration
Objective-C
@property (nonatomic, nullable) id<MMMLoadableImage> loadable;
Swift
var loadable: (any MMMLoadableImage)? { get set }