PBPopupController

@objc
@MainActor
public class PBPopupController : NSObject, UIGestureRecognizerDelegate
extension PBPopupController: UIViewControllerTransitioningDelegate
extension PBPopupController: UIViewControllerPreviewingDelegate

Undocumented

Public Properties

  • The data source of the PBPopupController object.

    Declaration

    Swift

    @objc
    @MainActor
    weak public var dataSource: PBPopupControllerDataSource?
  • The delegate of the PBPopupController object.

    Declaration

    Swift

    @objc
    @MainActor
    weak public var delegate: PBPopupControllerDelegate?
  • When presenting the contextual content view, the presentation controller will use a snapshot of the presentation view based on its content.

    Declaration

    Swift

    @objc
    @MainActor
    public var shouldUseSnapshotForPresentingView: Bool
  • The state of the popup presentation. (read-only)

    Declaration

    Swift

    @objc
    @MainActor
    public internal(set) var popupPresentationState: PBPopupPresentationState { get }
  • The tap gesture recognizer attached to the popup bar for presenting the popup content view.

    Declaration

    Swift

    @objc
    @MainActor
    public var popupBarTapGestureRecognizer: UITapGestureRecognizer!
  • The pan gesture recognizer attached to the popup bar for presenting the popup content view.

    Declaration

    Swift

    @objc
    @MainActor
    public var popupBarPanGestureRecognizer: UIPanGestureRecognizer!
  • The pan gesture recognizer attached to the popup content view for dismissing the popup content view.

    Declaration

    Swift

    @objc
    @MainActor
    public var popupContentPanGestureRecognizer: UIPanGestureRecognizer!
  • Set this property to false if you want addional safe area insets to be ignored when the popup bar is presented (usefull for iPad when the popup is the neighbour of another object).

    Declaration

    Swift

    @objc
    @MainActor
    public var wantsAdditionalSafeAreaInsetBottom: Bool
  • Set this property to true if you want addional safe area insets to be on top when the popup bar is presented (usefull for Catalyst when the popup is presented on top).

    Declaration

    Swift

    @objc
    @MainActor
    public var wantsAdditionalSafeAreaInsetTop: Bool
  • The preferred status bar style for the container view controller.

    Declaration

    Swift

    @objc
    @MainActor
    public var containerPreferredStatusBarStyle: UIStatusBarStyle { get set }
  • The preferred status bar style for the popup content view controller.

    Declaration

    Swift

    @objc
    @MainActor
    public var popupPreferredStatusBarStyle: UIStatusBarStyle { get set }
  • The status bar style of the popup content view controller. Return this value when you override the preferredStatusBarStyle variable.

    Declaration

    Swift

    @objc
    @MainActor
    public var popupStatusBarStyle: UIStatusBarStyle { get set }
  • Controls whether interaction with the popup generates haptic feedback to the user. The default value is true.

    Declaration

    Swift

    @objc
    @MainActor
    public var allowPopupHapticFeedbackGeneration: Bool
  • The soft soimpact feedback specific intensity. A value between 0.0 and 1.0.

    Declaration

    Swift

    @objc
    @MainActor
    public var softFeedbackGeneratorIntensity: CGFloat
  • The rigid impact feedback specific intensity. A value between 0.0 and 1.0.

    Declaration

    Swift

    @objc
    @MainActor
    public var rigidFeedbackGeneratorIntensity: CGFloat

Gesture recognizers

  • Undocumented

    Declaration

    Swift

    @MainActor
    public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool