SBSDKZoomingImageScrollView
@interface SBSDKZoomingImageScrollView : UIScrollView <UIScrollViewDelegate>
A scrollable and zoomable UIScrollView subclass that displays images and an overlay view. Zooming and scrolling can be controlled using the standard UIScrollView properties.
-
The image to be displayed. Can be zoomed and scrolled. If the image is zoomed out, it will be automatically centered.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIImage *image;
Swift
var image: UIImage? { get set }
-
The margins of the displayed image to the bounds of the receiver. Defaults to (20.0, 20.0, 20.0, 20.0).
Declaration
Objective-C
@property (nonatomic) UIEdgeInsets margins;
Swift
var margins: UIEdgeInsets { get set }
-
Pass a transparent view here to display it as a HUD style view above the image view. If set, it will automatically be laid out to match the frame of the image view. By default it is nil.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIView *overlayView;
Swift
var overlayView: UIView? { get set }