Index

RBImageScrollView.h

Classes


RBImageScrollView

A managed image view in a scroll area. Supports zooming.

Properties

Gets the underlying RBImageView object that is used to display an image.
public imageView RBImageView { get }

Gets or sets the UIImage object being displayed.
public image UIImage? { get set }

An optional image that should be displayed if a failure occurs loading images.
public failureImage UIImage? { get set }

Whether or not zooming is enabled.
public zoomEnabled Bool { get set }

Whether or not double tap zooming is enabled.
public doubleTapZoomEnabled Bool { get set }

The double tap recognizer that triggers zooming.
public doubleTapRecogniser UITapGestureRecognizer? { get }

Functions

Loads an image asynchronously from disk.
@param path : The filesystem path to the image file.
@param completion : An optional block that is called on completion.
- (void)imageFromDisk:(nonnull NSString *)path completion:(nullable void(^)(UIImage * __nullable image, NSError * __nullable error, BOOL wasCancelled))completion;

Loads an image asynchronously from the network.
@param request : The NSURLRequest request to the image.
@param completion : An optional block that is called on completion.
- (void)imageFromRequest:(nonnull NSURLRequest *)request completion:(nullable void(^)(UIImage * __nullable image, NSError * __nullable error))completion;