PBPopupControllerDelegate

@objc
public protocol PBPopupControllerDelegate : NSObjectProtocol

Undocumented

  • Called just before the popup bar view is presenting.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, willPresent popupBar: PBPopupBar)

    Parameters

    popupController

    The popup controller object.

    popupBar

    The popup bar object.

  • Called just before the popup bar view is dismissing.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, willDismiss popupBar: PBPopupBar)

    Parameters

    popupController

    The popup controller object.

    popupBar

    The popup bar object.

  • Called just after the popup bar view is presenting.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, didPresent popupBar: PBPopupBar)

    Parameters

    popupController

    The popup controller object.

    popupBar

    The popup bar object.

  • Called just after the popup bar view is dismissing.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, didDismiss popupBar: PBPopupBar)

    Parameters

    popupController

    The popup controller object.

    popupBar

    The popup bar object.

  • Called just before the popup content view is about to be open by typing or dragging the popup bar.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, shouldOpen popupContentViewController: UIViewController) -> Bool

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

    Return Value

    false if you want the gesture action to be ignored, true otherwise.

  • Called just before the popup content view is about to be open.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, willOpen popupContentViewController: UIViewController)

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

  • Called just before the popup content view is about to be closed by typing the popup close button or dragging the popup content view.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, shouldClose popupContentViewController: UIViewController) -> Bool

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

    Return Value

    false if you want the gesture action to be ignored, true otherwise.

  • Called just before the popup content view is about to be closed.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, willClose popupContentViewController: UIViewController)

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

  • Called just after the popup content view is open.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, didOpen popupContentViewController: UIViewController)

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

  • Called just after the popup content view is closed.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, didClose popupContentViewController: UIViewController)

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

  • Called several times during the interactive transition by user.

    Note

    The current progress is represented by a floating-point value between 0.0 and 1.0, inclusive, where 1.0 indicates the completion of the interactive presentation.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, interactivePresentationFor popupContentViewController: UIViewController, state: PBPopupPresentationState, progress: CGFloat, location: CGFloat)

    Parameters

    popupController

    The popup controller object.

    popupContentViewController

    The popup content view controller object.

    state

    The popup presentation state before the start of the transition (closed / open).

    progress

    The current progress of the interactive presentation

    location

    The popup content view current location. The y-coordinate of the point on screen.

  • Called when the presentation state of the popup controller has changed.

    Declaration

    Swift

    @objc
    optional func popupController(_ popupController: PBPopupController, stateChanged state: PBPopupPresentationState, previousState: PBPopupPresentationState)

    Parameters

    popupController

    The popup controller object.

    state

    The popup presentation state.

    previousState

    The previous popup presentation state.

  • Implement this to return NO when you want the tap gesture recognizer to be ignored.

    Declaration

    Swift

    @objc
    optional func popupControllerTapGestureShouldBegin(_ popupController: PBPopupController, state: PBPopupPresentationState) -> Bool

    Parameters

    popupController

    The popup controller object.

    state

    The popup presentation state.

    Return Value

    false if you want the pan gesture recognizer to be ignored, true otherwise.

  • Implement this to return NO when you want the pan gesture recognizer to be ignored.

    See also

    popupBarPanGestureRecognizer popupContentPanGestureRecognizer

    Declaration

    Swift

    @objc
    optional func popupControllerPanGestureShouldBegin(_ popupController: PBPopupController, state: PBPopupPresentationState) -> Bool

    Parameters

    popupController

    The popup controller object.

    state

    The popup presentation state.

    Return Value

    false if you want the pan gesture recognizer to be ignored, true otherwise.