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
popupController
The 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) -> CGRect
Parameters
popupController
The popup controller object.
bottomBarView
The 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
bottomBarView
returns 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.zero
otherwise. 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) -> UIEdgeInsets
Parameters
popupController
The popup controller object.
bottomBarView
The 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
bottomBarView
returns nil or is not implemented, this method is not called, and the default system-provided bottom inset is used.