PSPDFTabbedBar


@interface PSPDFTabbedBar : UIView

A bar that shows tabs for switching between documents, used by PSPDFTabbedViewController.

  • The height of the tabbed bar in points. The default is 33 points. If the height is less than 44 points, the hit area used for passing touch events to the tabbed bar extends below the visible bar to keep the hit target 44 points high.

    Declaration

    Objective-C

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

    Swift

    var barHeight: CGFloat { get set }
  • The visual style of the tabbed bar. The default is PSPDFTabbedBarStyleLight.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PSPDFTabbedBarStyle tabbedBarStyle;

    Swift

    var tabbedBarStyle: PSPDFTabbedBarStyle { get set }
  • The minimum tab width in points. The tab bar will allow horizontal scrolling rather than making tabs narrower than this width. The default is 100 points.

    Declaration

    Objective-C

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

    Swift

    var minTabWidth: CGFloat { get set }
  • The font used for each tab’s title label. The default is the bold system font in a size that scales with the iOS Text Size setting; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable) UIFont *tabTitleFont;

    Swift

    var tabTitleFont: NSFont! { get set }
  • The image used for the button shown on the selected tab that closes that tab. The image is aligned with the left end of the tab. To hide the close button, set closeMode to PSPDFTabbedViewControllerCloseModeDisabled on the parent PSPDFTabbedViewController. The default is a cross in a circle that scales with barHeight; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        UIImage *closeButtonImage;

    Swift

    var closeButtonImage: NSImage! { get set }
  • The view that provides the bar background appearance. The view in this property is positioned underneath all other tabbed bar content and is sized automatically to fill the bar. The default is a view that blurs the content behind the tabbed bar; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable) UIView *backgroundView;

    Swift

    var backgroundView: NSView! { get set }
  • A button shown in the tabbed bar that may be tapped to show a picker to open new documents. This button will be hidden if the owning PSPDFTabbedViewController does not have a documentPickerController.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIButton *_Nonnull documentPickerButton;

    Swift

    var documentPickerButton: NSButton { get }
  • A button shown in the tabbed bar that may be tapped to show an overview of all loaded documents.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIButton *_Nonnull overviewButton;

    Swift

    var overviewButton: NSButton { get }
  • The minimum number of tabs for which to show overviewButton. The default is PSPDFTabbedBarOverflowThresholdAutomatic.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger overviewThreshold;

    Swift

    var overviewThreshold: Int { get set }
  • An array of views placed at the left end of the tabbed bar. The views are ordered left-to-right, with the first view in the array on the far left. The default is an array containing only documentPickerButton.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSArray<UIView *> *_Nonnull leftViews;

    Swift

    var leftViews: [NSView] { get set }
  • An array of views placed at the right end of the tabbed bar. The views are ordered right-to-left, with the first view in the array on the far right. The default is an array containing only overviewButton.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSArray<UIView *> *_Nonnull rightViews;

    Swift

    var rightViews: [NSView] { get set }
  • The gesture recognizer used to allow the user to change the order of tabs by dragging.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        UILongPressGestureRecognizer *interactiveReorderingGestureRecognizer;

    Swift

    var interactiveReorderingGestureRecognizer: NSPressGestureRecognizer? { get }