PBPopupContentView
@objc
public class PBPopupContentView : UIView
The view where is embedded the popupContentViewController’s view for presentation. This view has a optional close button and a visual effect view with an optional effect.
-
The popup close button. (read-only).
The popup content view controller can place the popup close button within its own view hierarchy, instead of the system-defined placement.
Declaration
Swift
@objc public internal(set) var popupCloseButton: PBPopupCloseButton! { get }
-
The visual effect view behind the popup content view (read-only, but its effect can be set to nil).
Declaration
Swift
@objc public internal(set) var popupEffectView: UIVisualEffectView! { get }
-
The popup content view presentation style.
Default presentation style: deck, was fullScreen for iOS 9 and above, otherwise deck.
Declaration
Swift
@objc public var popupPresentationStyle: PBPopupPresentationStyle
-
The popup content view presentation duration when presenting from closed to open state.
Declaration
Swift
@objc public var popupPresentationDuration: TimeInterval
-
The popup content view dismissal duration when dismissing from open to closed state.
Declaration
Swift
@objc public var popupDismissalDuration: TimeInterval
-
The threshold value used to open or close the popup content view when dragging.
Declaration
Swift
@objc public var popupCompletionThreshold: CGFloat
-
The flick magnitude value used to open or close the popup content view when dragging.
Declaration
Swift
@objc public var popupCompletionFlickMagnitude: CGFloat
-
The popup content view size when popupPresentationStyle is set to custom.
Declaration
Swift
@objc public var popupContentSize: CGSize { get set }
-
A Boolean value that indicates whether the popup is floating (
true
) or not (false
).Declaration
Swift
@objc public var isFloating: Bool
-
An optional inset for the floating content view.
Declaration
Swift
@objc public var additionalFloatingBottomInset: CGFloat
-
If
true
, the popup content view can be dismissed when user interact outside the bounds.Declaration
Swift
@objc public var popupCanDismissOnPassthroughViews: Bool
-
If
false
andpopupPresentationStyle
isPBPopupPresentationStyle.custom
orPBPopupPresentationStyle.popup
, the popup container view has no dimmer view. Default value istrue
.See also
PBPopupPresentationStyle
.Declaration
Swift
@objc public var wantsPopupDimmerView: Bool
-
If
true
, tells the popup content view presentation to ignore the form sheet presentation by default.Declaration
Swift
@objc public var popupIgnoreDropShadowView: Bool
-
The view containing the top subviews (i.e. labels, image view, etc…) of the popup content view controller (optional but needed if bottom module is used). Used to animate the popup presentation. This view will be used for correctly positioning the bottom module during presentation animation.
Declaration
Swift
@objc public var popupTopModule: UIView?
-
The image view’s container view of the popup content view controller (optional). Useful for shadows. Used to animate the popup presentation.
Declaration
Swift
@objc public var popupImageModule: UIView?
-
The image view of the popup content view controller (optional). Used to animate the popup presentation.
Declaration
Swift
@objc public var popupImageView: UIImageView?
-
The view containing the controls subviews (i.e. playback buttons, volume slider, progress view, etc…) of the popup content view controller (optional). Used to animate the popup presentation. This view will be animated so as to be positioned under the image that grows.
Declaration
Swift
@available(*, deprecated, message: "Use popupBottomModule and popupTopModule instead") @objc public var popupControlsModule: UIView?
-
The view containing the controls subviews (i.e. playback buttons, volume slider, progress view, etc…) of the popup content view controller (optional). Used to animate the popup presentation. This view will be animated so as to be positioned under the image that grows.
Declaration
Swift
@objc public var popupBottomModule: UIView?
-
Required if popupControlsModule is provided. This is the top constraint against the popupImageModule view.
Declaration
Swift
@available(*, deprecated, message: "Use popupBottomModuleTopConstraint instead") @objc public var popupControlsModuleTopConstraint: NSLayoutConstraint?
-
Required if popupBottomModule is provided. This is the top constraint against the popupTopModule view.
Declaration
Swift
@objc public var popupBottomModuleTopConstraint: NSLayoutConstraint?
-
The popup close button style.
See also
PBPopupCloseButtonStyle
.Declaration
Swift
@objc public var popupCloseButtonStyle: PBPopupCloseButtonStyle { get set }
-
If
true
, move close button under navigation barsDeclaration
Swift
@objc public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool
-
The view to which the popup interaction gesture recognizer should be added to. The default implementation returns the popup content view.
Declaration
Swift
@objc public var popupContentDraggingView: UIView!