PSPDFGalleryImageContentView
Objective-C
@interface PSPDFGalleryImageContentView : PSPDFGalleryContentView
Swift
class GalleryImageContentView : GalleryContentView
Undocumented
-
Set this to YES if zooming should be enabled. This value only has an effect if an image is currently displayed. Defaults to NO.
Declaration
Objective-C
@property (nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
Swift
var isZoomEnabled: Bool { get set }
-
The maximum zoom scale that you want to allow. Only meaningful if zoomEnabled is YES. Defaults to 5.0.
Declaration
Objective-C
@property (nonatomic) CGFloat maximumZoomScale;
Swift
var maximumZoomScale: CGFloat { get set }
-
The minimum zoom scale that you want to allow. Only meaningful if zoomEnabled is YES. Defaults to 1.0.
Declaration
Objective-C
@property (nonatomic) CGFloat minimumZoomScale;
Swift
var minimumZoomScale: CGFloat { get set }
-
The current zoom scale. This is only meaningful if zoomEnabled is YES. Defaults to 1.0.
Declaration
Objective-C
@property (nonatomic) CGFloat zoomScale;
Swift
var zoomScale: CGFloat { get set }
-
Sets the current zoom scale, but only if
zoomEnabled
is YES andminimumZoomScale <= zoomScale <= maximumZoomScale
is true.Declaration
Objective-C
- (void)setZoomScale:(CGFloat)zoomScale animated:(BOOL)animated;
Swift
func setZoomScale(_ zoomScale: CGFloat, animated: Bool)
-
PSPDFGalleryImageContentView
expects anPSPDFGalleryImageItem
as its content.Declaration
Objective-C
@property (nonatomic, nullable) PSPDFGalleryImageItem *content;
Swift
var content: GalleryImageItem? { get set }
-
PSPDFGalleryImageContentView
expects anUIImageView
as itscontentView
.Declaration
Objective-C
@property (nonatomic, readonly) UIImageView *_Nonnull contentView;
Swift
var contentView: UIImageView { get }