PTThumbnailSliderView

@interface PTThumbnailSliderView
    : UIView <PTOverridable, UICollectionViewDataSource,
              UICollectionViewDelegate>

A PTThumbnailSliderView object shows a set of page thumbnails for a PTPDFViewCtrl‘s current document. The view also acts similar to a UISlider control, allowing the current page of the associated PTPDFViewCtrl to be changed with tap, pan, and long-press gestures on the pages.

  • Initializes a new PTThumbnailSliderView instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)
  • Initializes a new PTThumbnailSliderView instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithToolManager:
        (nonnull PTToolManager *)toolManager;

    Swift

    convenience init(toolManager: PTToolManager)
  • The PDFViewCtrl used to provide page thumbnails and document information to this view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) PTPDFViewCtrl *_Nonnull pdfViewCtrl;

    Swift

    var pdfViewCtrl: PTPDFViewCtrl { get }
  • The tool manager used by this view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) PTToolManager *_Nonnull toolManager;

    Swift

    var toolManager: PTToolManager { get }
  • Whether the view is currently tracking touch events.

    Declaration

    Objective-C

    @property (getter=isTracking, assign, readwrite, nonatomic) BOOL tracking;

    Swift

    var isTracking: Bool { get set }
  • The maximum value of the magnification effect shown while tracking a touch. The default value is 1.5.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat magnification;

    Swift

    var magnification: CGFloat { get set }
  • Whether the speed of scrubbing is adjusted when dragging vertically while scrubbing. The default value is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL adjustsScrubbingSpeed;

    Swift

    var adjustsScrubbingSpeed: Bool { get set }
  • The collection view used by the view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UICollectionView *_Nonnull collectionView;

    Swift

    var collectionView: UICollectionView { get }