PBPopupContentView
@objc
@MainActor
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 @MainActor public internal(set) var popupCloseButton: PBPopupCloseButton! { get }
-
Gives the popup content controller the opportunity to place the popup close button within its own view hierarchy, instead of the system-defined placement.
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 @MainActor public var popupCloseButtonIsUserPositioned: Bool
-
The visual effect view behind the popup content view (read-only, but its effect can be set to nil).
Declaration
Swift
@objc @MainActor public internal(set) var popupEffectView: UIVisualEffectView! { get }
-
If
true
, the popup content will automatically inherit its style from the popup bar.Declaration
Swift
@objc @MainActor public var inheritsVisualStyleFromPopupBar: Bool { get set }
-
The popup content view presentation style.
Default presentation style: deck, was fullScreen for iOS 9 and above, otherwise deck.
Declaration
Swift
@objc @MainActor public var popupPresentationStyle: PBPopupPresentationStyle { get set }
-
The popup content view presentation duration when presenting from closed to open state.
Declaration
Swift
@objc @MainActor public var popupPresentationDuration: TimeInterval
-
The popup content view dismissal duration when dismissing from open to closed state.
Declaration
Swift
@objc @MainActor public var popupDismissalDuration: TimeInterval
-
The threshold value used to open or close the popup content view when dragging.
Declaration
Swift
@objc @MainActor public var popupCompletionThreshold: CGFloat
-
The flick magnitude value used to open or close the popup content view when dragging.
Declaration
Swift
@objc @MainActor public var popupCompletionFlickMagnitude: CGFloat
-
The popup content view size when popupPresentationStyle is set to custom.
Declaration
Swift
@objc @MainActor public var popupContentSize: CGSize { get set }
-
A Boolean value that indicates whether the popup is floating (
true
) or not (false
).Declaration
Swift
@objc @MainActor public var isFloating: Bool
-
An optional inset for the floating content view.
Declaration
Swift
@objc @MainActor public var additionalFloatingBottomInset: CGFloat
-
If
true
, the popup content view can be dismissed when user interact outside the bounds.Declaration
Swift
@objc @MainActor 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 @MainActor public var wantsPopupDimmerView: Bool
-
If
true
, tells the popup content view presentation to ignore the form sheet presentation by default.Declaration
Swift
@objc @MainActor 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 @MainActor public var popupTopModule: UIView? { get set }
-
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 @MainActor public var popupImageModule: UIView? { get set }
-
The image view of the popup content view controller (optional). Used to animate the popup presentation.
Declaration
Swift
@objc @MainActor 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 @MainActor 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 @MainActor public var popupBottomModule: UIView? { get set }
-
Required if popupControlsModule is provided. This is the top constraint against the popupImageModule view.
Declaration
Swift
@available(*, deprecated, message: "Use popupBottomModuleTopConstraint instead") @objc @MainActor public var popupControlsModuleTopConstraint: NSLayoutConstraint?
-
Required if popupBottomModule is provided. This is the top constraint against the popupTopModule view.
Declaration
Swift
@objc @MainActor public var popupBottomModuleTopConstraint: NSLayoutConstraint?
-
The popup close button style.
See also
PBPopupCloseButtonStyle
.Declaration
Swift
@objc @MainActor public var popupCloseButtonStyle: PBPopupCloseButtonStyle { get set }
-
If
true
, move close button under navigation barsDeclaration
Swift
@objc @MainActor public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool { get set }
-
The view to which the popup interaction gesture recognizer should be added to. The default implementation returns the popup content view.
Declaration
Swift
@objc @MainActor public var popupContentDraggingView: UIView!
-
Call this method to update the popup content view appearance (style, tint color, etc.) according to its docking view. You should call this after updating the docking view. If the popup content view’s
inheritsVisualStyleFromPopupBar
property is set tofalse
, this method has no effect.Declaration
Swift
@objc @MainActor public func updatePopupContentViewAppearance()