PSPDFHUDView

The HUD overlay for the PSPDFViewController. Contains the thumbnail and page/title label overlays.

  • Convenience initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame
                               dataSource:
                                   (nonnull id<PSPDFPresentationContext>)dataSource;

    Swift

    init(frame: CGRect, dataSource: PSPDFPresentationContext)
  • The data source.

    Declaration

    Objective-C

    @property (readwrite, nonatomic)
        id<PSPDFPresentationContext> _Nullable dataSource;

    Swift

    weak var dataSource: PSPDFPresentationContext? { get set }
  • Force subview updating.

    Declaration

    Objective-C

    - (void)layoutSubviewsAnimated:(BOOL)animated;

    Swift

    func layoutSubviews(animated: Bool)
  • Fetches data again

    Declaration

    Objective-C

    - (void)reloadData;

    Swift

    func reloadData()
  • Specifies the distance between the page label and the top of the scrubber bar or the bottom of the screen, depending on whether the scrubber bar is enabled. Defaults to 0,5,10,5.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets pageLabelInsets;

    Swift

    var pageLabelInsets: UIEdgeInsets { get set }
  • Specifies the distance between the top document label. Defaults to 10,5,0,5.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets documentLabelInsets;

    Swift

    var documentLabelInsets: UIEdgeInsets { get set }
  • Insets from self.frame when positioning the thumbnail bar. Defaults to 0,0,0,0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets thumbnailBarInsets;

    Swift

    var thumbnailBarInsets: UIEdgeInsets { get set }
  • Insets from self.frame when positioning the scrubber bar. Defaults to 0,0,0,0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets scrubberBarInsets;

    Swift

    var scrubberBarInsets: UIEdgeInsets { get set }