PSPDFGalleryImageContentView

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 (getter=isZoomEnabled, assign, readwrite, nonatomic) 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 (assign, readwrite, 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 (assign, readwrite, 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 (assign, readwrite, nonatomic) CGFloat zoomScale;

    Swift

    var zoomScale: CGFloat { get set }
  • Sets the current zoom scale, but only if zoomEnabled is YES and minimumZoomScale <= zoomScale <= maximumZoomScale is true.

    Declaration

    Objective-C

    - (void)setZoomScale:(CGFloat)zoomScale animated:(BOOL)animated;

    Swift

    func setZoomScale(_ zoomScale: CGFloat, animated: Bool)
  • PSPDFGalleryImageContentView expects an PSPDFGalleryImageItem as its content.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFGalleryImageItem *content;

    Swift

    var content: PSPDFGalleryImageItem? { get set }
  • PSPDFGalleryImageContentView expects an UIImageView as its contentView.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIImageView *_Nonnull contentView;

    Swift

    var contentView: NSImageView { get }