PBPopupBarDataSource

@objc
public protocol PBPopupBarDataSource : NSObjectProtocol

The data source providing custom labels instances to the popup bar so they can be used instead of the default provided ones.

  • Returns a UIlabel subclass object to be used by the popup bar instead of the default title label (for example a MarqueeLabel instance).

    Declaration

    Swift

    @objc
    optional func titleLabel(for popupBar: PBPopupBar) -> UILabel?

    Parameters

    popupBar

    The popup bar object asking for a label.

    Return Value

    A UIlabel object to be used instead of the default one.

  • Returns a UIlabel subclass object to be used by the popup bar instead of the default subtitle label (for example a MarqueeLabel instance).

    Declaration

    Swift

    @objc
    optional func subtitleLabel(for popupBar: PBPopupBar) -> UILabel?

    Parameters

    popupBar

    The popup bar object asking for a label.

    Return Value

    A UIlabel object to be used instead of the default one.