PBPopupControllerDataSource
@objc
public protocol PBPopupControllerDataSource : NSObjectProtocol
Undocumented
-
Returns a custom bottom bar view. The popup bar will be attached to.
Declaration
Swift
@objc optional func bottomBarView(for popupController: PBPopupController) -> UIView?Parameters
popupControllerThe popup controller object.
Return Value
The view object representing the bottom bar view.
-
Returns the default frame for the bottom bar view.
See also
bottomBarView(for:)
Declaration
Swift
@objc optional func popupController(_ popupController: PBPopupController, defaultFrameFor bottomBarView: UIView) -> CGRectParameters
popupControllerThe popup controller object.
bottomBarViewThe bottom bar view returned by ‘bottomBarView(for:)’
Return Value
The default frame for the bottom bar view, when the popup is in hidden or closed state. If
bottomBarViewreturns nil or is not implemented, this method is not called, and the default system-provided frame is used. -
Returns the insets for the bottom bar view from bottom of the container controller’s view. By default, this is set to the container controller view’s safe area insets since iOS 11 or
UIEdgeInsets.zerootherwise. Currently, only the bottom inset is respected.The system calculates the position of the popup bar by summing the bottom bar height and the bottom of the insets.
See also
bottomBarView(for:)
Declaration
Swift
@objc optional func popupController(_ popupController: PBPopupController, insetsFor bottomBarView: UIView) -> UIEdgeInsetsParameters
popupControllerThe popup controller object.
bottomBarViewThe bottom bar view returned by ‘bottomBarView(for:)’
Return Value
The insets for the bottom bar view from bottom of the container controller’s view. If
bottomBarViewreturns nil or is not implemented, this method is not called, and the default system-provided bottom inset is used.
View on GitHub