PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
@objc
+@MainActor
public var image: UIImage? { get set }
Swift
@objc
+@MainActor
public internal(set) var imageView: UIImageView! { get }
Swift
@objc
+@MainActor
public private(set) var shadowImageView: PBPopupRoundShadowImageView! { get }
Swift
@objc
+@MainActor
public var title: String? { get set }
Swift
@objc
+@MainActor
public var titleTextAttributes: [NSAttributedString.Key : Any]? { get set }
Swift
@objc
+@MainActor
public var subtitle: String? { get set }
Swift
@objc
+@MainActor
public var subtitleTextAttributes: [NSAttributedString.Key : Any]? { get set }
Swift
-override public var accessibilityLabel: String? { get set }
+ @MainActor
+override public var accessibilityLabel: String? { get set }
Swift
-override public var accessibilityHint: String? { get set }
+ @MainActor
+override public var accessibilityHint: String? { get set }
Swift
-override public var semanticContentAttribute: UISemanticContentAttribute { get set }
+ @MainActor
+override public var semanticContentAttribute: UISemanticContentAttribute { get set }
Swift
@objc
+@MainActor
public var leftBarButtonItems: [UIBarButtonItem]? { get set }
Swift
@objc
+@MainActor
public var rightBarButtonItems: [UIBarButtonItem]? { get set }
Swift
@objc
+@MainActor
public var barButtonItemsSemanticContentAttribute: UISemanticContentAttribute { get set }
Swift
@objc
+@MainActor
public var progressViewStyle: PBPopupBarProgressViewStyle { get set }
Swift
@objc
+@MainActor
public var progress: Float { get set }
Swift
@objc
+@MainActor
public var borderViewStyle: PBPopupBarBorderViewStyle { get set }
Swift
@objc
+@MainActor
public var accessibilityProgressLabel: String?
Swift
@objc
+@MainActor
public var accessibilityProgressValue: String?
Swift
@objc
+@MainActor
public func updatePopupBarAppearance()
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupCloseButton : UIButton
Swift
@objc
+@MainActor
public private(set) var style: PBPopupCloseButtonStyle { get }
Swift
@objc
+@MainActor
public private(set) var backgroundView: UIVisualEffectView? { get }
Swift
-override public var intrinsicContentSize: CGSize { get }
+ @MainActor
+override public var intrinsicContentSize: CGSize { get }
Swift
-public convenience init(style: PBPopupCloseButtonStyle)
+ @MainActor
+public convenience init(style: PBPopupCloseButtonStyle)
Swift
-required public init?(coder aDecoder: NSCoder)
+ @MainActor
+required public init?(coder aDecoder: NSCoder)
Swift
@objc
+@MainActor
public func setButtonStateStationary()
Swift
@objc
+@MainActor
public func setButtonStateTransitioning()
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupContentView : UIView
Swift
@objc
+@MainActor
public internal(set) var popupCloseButton: PBPopupCloseButton! { get }
Swift
@objc
+@MainActor
public internal(set) var popupEffectView: UIVisualEffectView! { get }
+
+
+ inheritsVisualStyleFromPopupBar
+
+ If true
, the popup content will automatically inherit its style from the popup bar.
Swift
+@objc
+@MainActor
+public var inheritsVisualStyleFromPopupBar: Bool { get set }
+
+
@@ -245,6 +279,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupPresentationStyle: PBPopupPresentationStyle
@@ -273,6 +308,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupPresentationDuration: TimeInterval
@@ -301,6 +337,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupDismissalDuration: TimeInterval
@@ -329,6 +366,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCompletionThreshold: CGFloat
@@ -357,6 +395,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCompletionFlickMagnitude: CGFloat
@@ -385,6 +424,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupContentSize: CGSize { get set }
@@ -413,6 +453,7 @@ Declaration
Swift
@objc
+@MainActor
public var isFloating: Bool
@@ -441,6 +482,7 @@ Declaration
Swift
@objc
+@MainActor
public var additionalFloatingBottomInset: CGFloat
@@ -469,6 +511,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCanDismissOnPassthroughViews: Bool
@@ -502,6 +545,7 @@ Declaration
Swift
@objc
+@MainActor
public var wantsPopupDimmerView: Bool
@@ -530,6 +574,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupIgnoreDropShadowView: Bool
@@ -558,6 +603,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupTopModule: UIView?
@@ -586,6 +632,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupImageModule: UIView?
@@ -614,6 +661,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupImageView: UIImageView?
@@ -643,6 +691,7 @@ Declaration
Swift
@available(*, deprecated, message: "Use popupBottomModule and popupTopModule instead")
@objc
+@MainActor
public var popupControlsModule: UIView?
Swift
@objc
+@MainActor
public var popupBottomModule: UIView?
Swift
@available(*, deprecated, message: "Use popupBottomModuleTopConstraint instead")
@objc
+@MainActor
public var popupControlsModuleTopConstraint: NSLayoutConstraint?
Swift
@objc
+@MainActor
public var popupBottomModuleTopConstraint: NSLayoutConstraint?
Swift
@objc
+@MainActor
public var popupCloseButtonStyle: PBPopupCloseButtonStyle { get set }
Swift
@objc
-public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool
+@MainActor
+public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool { get set }
Swift
@objc
+@MainActor
public var popupContentDraggingView: UIView!
+
+
+
+ updatePopupContentViewAppearance()
+
+ 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 to false
, this method has no effect.
See also
+PBPopupContentView.inheritsVisualStyleFromPopupBar
.
+
+Swift
+@objc
+@MainActor
+public func updatePopupContentViewAppearance()
+
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupController : NSObject, UIGestureRecognizerDelegate
extension PBPopupController: UIViewControllerTransitioningDelegate
extension PBPopupController: UIViewControllerPreviewingDelegate
@@ -192,6 +195,7 @@ Swift
@objc
+@MainActor
weak public var dataSource: PBPopupControllerDataSource?
Swift
@objc
+@MainActor
weak public var delegate: PBPopupControllerDelegate?
Swift
@objc
+@MainActor
public internal(set) var popupPresentationState: PBPopupPresentationState { get }
Swift
@objc
+@MainActor
public var popupBarTapGestureRecognizer: UITapGestureRecognizer!
Swift
@objc
+@MainActor
public var popupBarPanGestureRecognizer: UIPanGestureRecognizer!
Swift
@objc
+@MainActor
public var popupContentPanGestureRecognizer: UIPanGestureRecognizer!
Swift
@objc
+@MainActor
public var wantsAdditionalSafeAreaInsetBottom: Bool
Swift
@objc
+@MainActor
public var wantsAdditionalSafeAreaInsetTop: Bool
Swift
@objc
+@MainActor
public var containerPreferredStatusBarStyle: UIStatusBarStyle { get set }
The preferred status bar style for the popup content view controller when popupPresentationStyle
is set to deck
.
The preferred status bar style for the popup content view controller.
Swift
@objc
+@MainActor
public var popupPreferredStatusBarStyle: UIStatusBarStyle
Swift
@objc
+@MainActor
public var popupStatusBarStyle: UIStatusBarStyle
Swift
@objc
+@MainActor
public var allowPopupHapticFeedbackGeneration: Bool
Swift
@objc
+@MainActor
public var softFeedbackGeneratorIntensity: CGFloat
Swift
@objc
+@MainActor
public var rigidFeedbackGeneratorIntensity: CGFloat
Swift
-public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool
+ @MainActor
+public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
open class PBPopupRoundShadowImageView : UIView
Swift
-public let imageView: UIImageView
+ @MainActor
+public let imageView: UIImageView
Swift
@objc
+@MainActor
public var popupContentView: PBPopupContentView? { get }
Swift
@objc
+@MainActor
public var image: UIImage! { get set }
Swift
@objc
+@MainActor
public var cornerRadius: CGFloat { get set }
Swift
@objc
+@MainActor
public var shadowColor: UIColor? { get set }
Swift
@objc
+@MainActor
public var shadowOffset: CGSize { get set }
Swift
@objc
+@MainActor
public var shadowOpacity: Float { get set }
Swift
@objc
+@MainActor
public var shadowRadius: CGFloat { get set }
Swift
-public override init(frame: CGRect)
+ @MainActor
+public override init(frame: CGRect)
Swift
@objc
+@MainActor
convenience public init(image: UIImage, cornerRadius: CGFloat = 0.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = .zero, shadowOpacity: Float = 0.0, shadowRadius: CGFloat = 0.0)
Swift
-required public init?(coder aDecoder: NSCoder)
+ @MainActor
+required public init?(coder aDecoder: NSCoder)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-public var displayCornerRadius: CGFloat { get }
+ @MainActor
+public var displayCornerRadius: CGFloat { get }
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
@objc
+@MainActor
var enablePopupBarColorsDebug: Bool { get set }
Swift
@objc
+@MainActor
var usePopupBarSmoothGradient: Bool { get set }
Swift
@objc
+@MainActor
var usePopupBarLegacyShadow: Bool { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupBar: PBPopupBar! { get set }
Swift
@objc
+@MainActor
internal(set) weak var bottomBar: UIView! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupController: PBPopupController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContainerViewController: UIViewController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContentViewController: UIViewController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContentView: PBPopupContentView! { get set }
Swift
@objc
+@MainActor
var hidesPopupBarWhenPushed: Bool { get set }
Swift
@objc
+@MainActor
var additionalSafeAreaInsetsBottomForContainer: CGFloat { get set }
Swift
@objc
+@MainActor
func presentPopupBar(withPopupContentViewController controller: UIViewController!, openPopup: Bool, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func presentPopupBar(withPopupContentViewController controller: UIViewController!, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func dismissPopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func hidePopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func showPopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func presentPopup(withPopupContentViewController controller: UIViewController!, size: CGSize = .zero, isFloating: Bool = true, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func dismissPopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func openPopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func closePopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func updatePopupBarAppearance()
Swift
-func popupContainerViewController(for viewController: UIViewController? = nil) -> UIViewController?
+ @MainActor
+func popupContainerViewController(for viewController: UIViewController? = nil) -> UIViewController?
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-func popup<PopupContent>(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, @ViewBuilder popupContent: @escaping () -> PopupContent) -> some View where PopupContent : View
+ @MainActor
+func popup<PopupContent>(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, @ViewBuilder popupContent: @escaping () -> PopupContent) -> some View where PopupContent : View
Swift
-func popup(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, popupContentController: UIViewController) -> some View
+ @MainActor
+func popup(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, popupContentController: UIViewController) -> some View
Swift
-func popupCloseButtonStyle(_ style: PBPopupCloseButtonStyle) -> some View
+ @MainActor
+func popupCloseButtonStyle(_ style: PBPopupCloseButtonStyle) -> some View
Swift
-func isFloating(_ floating: Bool) -> some View
+ @MainActor
+func isFloating(_ floating: Bool) -> some View
Swift
-func popupBarStyle(_ style: PBPopupBarStyle) -> some View
+ @MainActor
+func popupBarStyle(_ style: PBPopupBarStyle) -> some View
Swift
-func barStyle(_ style: UIBarStyle) -> some View
+ @MainActor
+func barStyle(_ style: UIBarStyle) -> some View
Swift
-func backgroundStyle(_ style: UIBlurEffect.Style) -> some View
+ @MainActor
+func backgroundStyle(_ style: UIBlurEffect.Style) -> some View
Swift
-func backgroundEffect(_ effect: UIBlurEffect) -> some View
+ @MainActor
+func backgroundEffect(_ effect: UIBlurEffect) -> some View
Swift
-func floatingBackgroundEffect(_ effect: UIBlurEffect) -> some View
+ @MainActor
+func floatingBackgroundEffect(_ effect: UIBlurEffect) -> some View
Swift
-func inheritsVisualStyleFromBottomBar(_ inherits: Bool) -> some View
+ @MainActor
+func inheritsVisualStyleFromBottomBar(_ inherits: Bool) -> some View
Swift
-func isTranslucent(_ translucent: Bool) -> some View
+ @MainActor
+func isTranslucent(_ translucent: Bool) -> some View
Swift
-func backgroundColor(_ color: UIColor) -> some View
+ @MainActor
+func backgroundColor(_ color: UIColor) -> some View
Swift
-func floatingBackgroundColor(_ color: UIColor) -> some View
+ @MainActor
+func floatingBackgroundColor(_ color: UIColor) -> some View
Swift
-func tintColor(_ color: UIColor) -> some View
+ @MainActor
+func tintColor(_ color: UIColor) -> some View
Swift
-func popupBarProgressViewStyle(_ style: PBPopupBarProgressViewStyle) -> some View
+ @MainActor
+func popupBarProgressViewStyle(_ style: PBPopupBarProgressViewStyle) -> some View
Swift
-func popupBarBorderViewStyle(_ style: PBPopupBarBorderViewStyle) -> some View
+ @MainActor
+func popupBarBorderViewStyle(_ style: PBPopupBarBorderViewStyle) -> some View
Swift
-func popupPresentationStyle(_ style: PBPopupPresentationStyle) -> some View
+ @MainActor
+func popupPresentationStyle(_ style: PBPopupPresentationStyle) -> some View
Swift
-func popupPresentationDuration(_ duration: TimeInterval) -> some View
+ @MainActor
+func popupPresentationDuration(_ duration: TimeInterval) -> some View
Swift
-func popupDismissalDuration(_ duration: TimeInterval) -> some View
+ @MainActor
+func popupDismissalDuration(_ duration: TimeInterval) -> some View
Swift
-func popupCompletionThreshold(_ threshold: CGFloat) -> some View
+ @MainActor
+func popupCompletionThreshold(_ threshold: CGFloat) -> some View
Swift
-func popupContentSize(_ size: CGSize) -> some View
+ @MainActor
+func popupContentSize(_ size: CGSize) -> some View
Swift
-func popupIgnoreDropShadowView(_ ignore: Bool) -> some View
+ @MainActor
+func popupIgnoreDropShadowView(_ ignore: Bool) -> some View
Swift
-func shouldExtendCustomBarUnderSafeArea(_ should: Bool) -> some View
+ @MainActor
+func shouldExtendCustomBarUnderSafeArea(_ should: Bool) -> some View
Swift
-func popupBarCustomView<PopupBarContent>(@ViewBuilder popupBarContent: @escaping () -> PopupBarContent) -> some View where PopupBarContent : View
+ @MainActor
+func popupBarCustomView<PopupBarContent>(@ViewBuilder popupBarContent: @escaping () -> PopupBarContent) -> some View where PopupBarContent : View
Swift
-func popupBarCustomizer(_ customizer: @escaping (_ popupBar: PBPopupBar) -> Void) -> some View
+ @MainActor
+func popupBarCustomizer(_ customizer: @escaping (_ popupBar: PBPopupBar) -> Void) -> some View
Swift
-func popupContentViewCustomizer(_ customizer: @escaping (_ popupBContentView: PBPopupContentView) -> Void) -> some View
+ @MainActor
+func popupContentViewCustomizer(_ customizer: @escaping (_ popupBContentView: PBPopupContentView) -> Void) -> some View
Swift
-func popupTitle<S>(_ localizedTitleKey: S, subtitle localizedSubtitleKey: S? = nil) -> some View where S : StringProtocol
+ @MainActor
+func popupTitle<S>(_ localizedTitleKey: S, subtitle localizedSubtitleKey: S? = nil) -> some View where S : StringProtocol
Swift
-func popupTitle<S>(verbatim title: S, subtitle: S? = nil) -> some View where S : StringProtocol
+ @MainActor
+func popupTitle<S>(verbatim title: S, subtitle: S? = nil) -> some View where S : StringProtocol
Swift
-func popupTitle(verbatim title: String, subtitle: String? = nil) -> some View
+ @MainActor
+func popupTitle(verbatim title: String, subtitle: String? = nil) -> some View
Swift
-func popupLabel(_ label: UILabel? = nil, sublabel: UILabel? = nil) -> some View
+ @MainActor
+func popupLabel(_ label: UILabel? = nil, sublabel: UILabel? = nil) -> some View
Swift
-func popupRoundShadowImage(_ image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0) -> some View
+ @MainActor
+func popupRoundShadowImage(_ image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0) -> some View
Swift
-func popupImage(_ image: Image) -> some View
+ @MainActor
+func popupImage(_ image: Image) -> some View
Swift
-func popupBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
+ @MainActor
+func popupBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
Swift
-func popupFloatingBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
+ @MainActor
+func popupFloatingBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
Swift
-func popupProgress(_ progress: Float) -> some View
+ @MainActor
+func popupProgress(_ progress: Float) -> some View
Swift
-func popupBarItems<LeadingContent>(@ViewBuilder leading: () -> LeadingContent) -> some View where LeadingContent : View
+ @MainActor
+func popupBarItems<LeadingContent>(@ViewBuilder leading: () -> LeadingContent) -> some View where LeadingContent : View
Swift
-func popupBarItems<TrailingContent>(@ViewBuilder trailing: () -> TrailingContent) -> some View where TrailingContent : View
+ @MainActor
+func popupBarItems<TrailingContent>(@ViewBuilder trailing: () -> TrailingContent) -> some View where TrailingContent : View
Swift
-func popupContentBackground<BackgroundContent>(@ViewBuilder background: () -> BackgroundContent) -> some View where BackgroundContent : View
+ @MainActor
+func popupContentBackground<BackgroundContent>(@ViewBuilder background: () -> BackgroundContent) -> some View where BackgroundContent : View
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
+
+
+ additionalAnimationsForOpening(popupController:popupContentViewController:isInteractive:)
+
+ Asks the delegate for addditional animations to add to the animator while opening the popup content view.
+ +Swift
+@objc
+optional func additionalAnimationsForOpening(popupController: PBPopupController, popupContentViewController: UIViewController, isInteractive: Bool) -> (() -> Void)?
+
+
+
+ popupController
+
+ |
+
+
+
+ The popup controller object. + |
+
+
+ popupContentViewController
+
+ |
+
+
+
+ The popup content view controller object. + |
+
A block containing the requested animations. The properties should be animatable.
+
@@ -635,6 +700,69 @@ Parameters
+
+
+ additionalAnimationsForClosing(popupController:popupContentViewController:isInteractive:)
+
+ Asks the delegate for addditional animations to add to the animator while closing the popup content view.
+ +Swift
+@objc
+optional func additionalAnimationsForClosing(popupController: PBPopupController, popupContentViewController: UIViewController, isInteractive: Bool) -> (() -> Void)?
+
+
+
+ popupController
+
+ |
+
+
+
+ The popup controller object. + |
+
+
+ popupContentViewController
+
+ |
+
+
+
+ The popup content view controller object. + |
+
A block containing the requested animations. The properties should be animatable.
+
@@ -1075,8 +1203,8 @@ Return Value
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-public struct RoundShadowImage : UIViewRepresentable
+ @MainActor
+public struct RoundShadowImage : UIViewRepresentable
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
public struct RoundShadowImage : UIViewRepresentable
+ @MainActor
+public struct RoundShadowImage : UIViewRepresentable
Swift
-public init(image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = .black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0)
+ @MainActor
+public init(image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = .black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0)
Swift
-public func makeUIView(context: Context) -> RoundShadowImageView
+ @MainActor
+public func makeUIView(context: Context) -> RoundShadowImageView
Swift
-public func updateUIView(_ uiView: RoundShadowImageView, context: Context)
+ @MainActor
+public func updateUIView(_ uiView: RoundShadowImageView, context: Context)
Swift
-func cornerRadius(_ cornerRadius: CGFloat) -> RoundShadowImage
+ @MainActor
+func cornerRadius(_ cornerRadius: CGFloat) -> RoundShadowImage
Swift
-func shadowColor(_ shadowColor: UIColor) -> RoundShadowImage
+ @MainActor
+func shadowColor(_ shadowColor: UIColor) -> RoundShadowImage
Swift
-func shadowOffset(_ shadowOffset: CGSize) -> RoundShadowImage
+ @MainActor
+func shadowOffset(_ shadowOffset: CGSize) -> RoundShadowImage
Swift
-func shadowOpacity(_ shadowOpacity: Float) -> RoundShadowImage
+ @MainActor
+func shadowOpacity(_ shadowOpacity: Float) -> RoundShadowImage
Swift
-func shadowRadius(_ shadowRadius: CGFloat) -> RoundShadowImage
+ @MainActor
+func shadowRadius(_ shadowRadius: CGFloat) -> RoundShadowImage
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
@objc
+@MainActor
public class PBPopupBar : UIView
Swift
@objc
+@MainActor
public class PBPopupCloseButton : UIButton
Swift
@objc
+@MainActor
public class PBPopupContentView : UIView
Swift
@objc
+@MainActor
public class PBPopupController : NSObject, UIGestureRecognizerDelegate
extension PBPopupController: UIViewControllerTransitioningDelegate
extension PBPopupController: UIViewControllerPreviewingDelegate
@@ -325,6 +329,7 @@ Swift
@objc
+@MainActor
open class PBPopupRoundShadowImageView : UIView
Swift
-public class RoundShadowImageView : PBPopupRoundShadowImageView
+ @MainActor
+public class RoundShadowImageView : PBPopupRoundShadowImageView
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupBar : UIView
Swift
@objc
+@MainActor
weak public var dataSource: PBPopupBarDataSource? { get set }
Swift
@objc
+@MainActor
weak public var previewingDelegate: PBPopupBarPreviewingDelegate?
Swift
@available(*, deprecated, message: "Use enablePopupBarColorsDebug on presentation container view controller instead")
@objc
+@MainActor
public var PBPopupBarShowColors: Bool
Swift
@objc
+@MainActor
public var popupBarPresentationDuration: TimeInterval
Swift
@available(*, deprecated, message: "Use PBPopupController.popupBarTapGestureRecognizer instead")
@objc
+@MainActor
public var popupTapGestureRecognizer: UITapGestureRecognizer!
Swift
@objc
+@MainActor
public var customPopupBarViewController: UIViewController? { get set }
Swift
@objc
+@MainActor
public var shouldExtendCustomBarUnderSafeArea: Bool
Swift
@objc
+@MainActor
public var inheritsVisualStyleFromBottomBar: Bool { get set }
Swift
@objc
+@MainActor
public var isFloating: Bool { get set }
Swift
@objc
+@MainActor
public var floatingRadius: CGFloat
Swift
@objc
+@MainActor
public var floatingInsets: UIEdgeInsets
Swift
@objc
+@MainActor
public var popupBarStyle: PBPopupBarStyle { get set }
Swift
@objc
+@MainActor
public var barStyle: UIBarStyle { get set }
Swift
@objc
+@MainActor
public var backgroundEffect: UIBlurEffect? { get set }
Swift
@objc
+@MainActor
public var floatingBackgroundEffect: UIBlurEffect? { get set }
Swift
@objc
+@MainActor
public var backgroundStyle: UIBlurEffect.Style { get set }
Swift
@objc
+@MainActor
public var isTranslucent: Bool { get set }
Swift
@objc
+@MainActor
public var backgroundCustomView: UIView? { get set }
Swift
-override public var backgroundColor: UIColor? { get set }
+ @MainActor
+override public var backgroundColor: UIColor? { get set }
Swift
@objc
+@MainActor
public var floatingBackgroundColor: UIColor? { get set }
Swift
@objc
+@MainActor
public var backgroundImage: UIImage? { get set }
Swift
@objc
+@MainActor
public var backgroundImageContentMode: UIView.ContentMode { get set }
Swift
@objc
+@MainActor
public var floatingBackgroundImage: UIImage? { get set }
Swift
@objc
+@MainActor
public var floatingBackgroundImageContentMode: UIView.ContentMode { get set }
Swift
@objc
+@MainActor
public internal(set) var floatingBackgroundShadow: NSShadow! { get }
Swift
-override public var tintColor: UIColor! { get set }
+ @MainActor
+override public var tintColor: UIColor! { get set }
Swift
@objc
+@MainActor
public var image: UIImage? { get set }
Swift
@objc
+@MainActor
public internal(set) var imageView: UIImageView! { get }
Swift
@objc
+@MainActor
public private(set) var shadowImageView: PBPopupRoundShadowImageView! { get }
Swift
@objc
+@MainActor
public var title: String? { get set }
Swift
@objc
+@MainActor
public var titleTextAttributes: [NSAttributedString.Key : Any]? { get set }
Swift
@objc
+@MainActor
public var subtitle: String? { get set }
Swift
@objc
+@MainActor
public var subtitleTextAttributes: [NSAttributedString.Key : Any]? { get set }
Swift
-override public var accessibilityLabel: String? { get set }
+ @MainActor
+override public var accessibilityLabel: String? { get set }
Swift
-override public var accessibilityHint: String? { get set }
+ @MainActor
+override public var accessibilityHint: String? { get set }
Swift
-override public var semanticContentAttribute: UISemanticContentAttribute { get set }
+ @MainActor
+override public var semanticContentAttribute: UISemanticContentAttribute { get set }
Swift
@objc
+@MainActor
public var leftBarButtonItems: [UIBarButtonItem]? { get set }
Swift
@objc
+@MainActor
public var rightBarButtonItems: [UIBarButtonItem]? { get set }
Swift
@objc
+@MainActor
public var barButtonItemsSemanticContentAttribute: UISemanticContentAttribute { get set }
Swift
@objc
+@MainActor
public var progressViewStyle: PBPopupBarProgressViewStyle { get set }
Swift
@objc
+@MainActor
public var progress: Float { get set }
Swift
@objc
+@MainActor
public var borderViewStyle: PBPopupBarBorderViewStyle { get set }
Swift
@objc
+@MainActor
public var accessibilityProgressLabel: String?
Swift
@objc
+@MainActor
public var accessibilityProgressValue: String?
Swift
@objc
+@MainActor
public func updatePopupBarAppearance()
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupCloseButton : UIButton
Swift
@objc
+@MainActor
public private(set) var style: PBPopupCloseButtonStyle { get }
Swift
@objc
+@MainActor
public private(set) var backgroundView: UIVisualEffectView? { get }
Swift
-override public var intrinsicContentSize: CGSize { get }
+ @MainActor
+override public var intrinsicContentSize: CGSize { get }
Swift
-public convenience init(style: PBPopupCloseButtonStyle)
+ @MainActor
+public convenience init(style: PBPopupCloseButtonStyle)
Swift
-required public init?(coder aDecoder: NSCoder)
+ @MainActor
+required public init?(coder aDecoder: NSCoder)
Swift
@objc
+@MainActor
public func setButtonStateStationary()
Swift
@objc
+@MainActor
public func setButtonStateTransitioning()
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupContentView : UIView
Swift
@objc
+@MainActor
public internal(set) var popupCloseButton: PBPopupCloseButton! { get }
Swift
@objc
+@MainActor
public internal(set) var popupEffectView: UIVisualEffectView! { get }
+
+
+ inheritsVisualStyleFromPopupBar
+
+ If true
, the popup content will automatically inherit its style from the popup bar.
Swift
+@objc
+@MainActor
+public var inheritsVisualStyleFromPopupBar: Bool { get set }
+
+
@@ -245,6 +279,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupPresentationStyle: PBPopupPresentationStyle
@@ -273,6 +308,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupPresentationDuration: TimeInterval
@@ -301,6 +337,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupDismissalDuration: TimeInterval
@@ -329,6 +366,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCompletionThreshold: CGFloat
@@ -357,6 +395,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCompletionFlickMagnitude: CGFloat
@@ -385,6 +424,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupContentSize: CGSize { get set }
@@ -413,6 +453,7 @@ Declaration
Swift
@objc
+@MainActor
public var isFloating: Bool
@@ -441,6 +482,7 @@ Declaration
Swift
@objc
+@MainActor
public var additionalFloatingBottomInset: CGFloat
@@ -469,6 +511,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupCanDismissOnPassthroughViews: Bool
@@ -502,6 +545,7 @@ Declaration
Swift
@objc
+@MainActor
public var wantsPopupDimmerView: Bool
@@ -530,6 +574,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupIgnoreDropShadowView: Bool
@@ -558,6 +603,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupTopModule: UIView?
@@ -586,6 +632,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupImageModule: UIView?
@@ -614,6 +661,7 @@ Declaration
Swift
@objc
+@MainActor
public var popupImageView: UIImageView?
@@ -643,6 +691,7 @@ Declaration
Swift
@available(*, deprecated, message: "Use popupBottomModule and popupTopModule instead")
@objc
+@MainActor
public var popupControlsModule: UIView?
Swift
@objc
+@MainActor
public var popupBottomModule: UIView?
Swift
@available(*, deprecated, message: "Use popupBottomModuleTopConstraint instead")
@objc
+@MainActor
public var popupControlsModuleTopConstraint: NSLayoutConstraint?
Swift
@objc
+@MainActor
public var popupBottomModuleTopConstraint: NSLayoutConstraint?
Swift
@objc
+@MainActor
public var popupCloseButtonStyle: PBPopupCloseButtonStyle { get set }
Swift
@objc
-public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool
+@MainActor
+public var popupCloseButtonAutomaticallyUnobstructsTopBars: Bool { get set }
Swift
@objc
+@MainActor
public var popupContentDraggingView: UIView!
+
+
+
+ updatePopupContentViewAppearance()
+
+ 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 to false
, this method has no effect.
See also
+PBPopupContentView.inheritsVisualStyleFromPopupBar
.
+
+Swift
+@objc
+@MainActor
+public func updatePopupContentViewAppearance()
+
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
public class PBPopupController : NSObject, UIGestureRecognizerDelegate
extension PBPopupController: UIViewControllerTransitioningDelegate
extension PBPopupController: UIViewControllerPreviewingDelegate
@@ -192,6 +195,7 @@ Swift
@objc
+@MainActor
weak public var dataSource: PBPopupControllerDataSource?
Swift
@objc
+@MainActor
weak public var delegate: PBPopupControllerDelegate?
Swift
@objc
+@MainActor
public internal(set) var popupPresentationState: PBPopupPresentationState { get }
Swift
@objc
+@MainActor
public var popupBarTapGestureRecognizer: UITapGestureRecognizer!
Swift
@objc
+@MainActor
public var popupBarPanGestureRecognizer: UIPanGestureRecognizer!
Swift
@objc
+@MainActor
public var popupContentPanGestureRecognizer: UIPanGestureRecognizer!
Swift
@objc
+@MainActor
public var wantsAdditionalSafeAreaInsetBottom: Bool
Swift
@objc
+@MainActor
public var wantsAdditionalSafeAreaInsetTop: Bool
Swift
@objc
+@MainActor
public var containerPreferredStatusBarStyle: UIStatusBarStyle { get set }
The preferred status bar style for the popup content view controller when popupPresentationStyle
is set to deck
.
The preferred status bar style for the popup content view controller.
Swift
@objc
+@MainActor
public var popupPreferredStatusBarStyle: UIStatusBarStyle
Swift
@objc
+@MainActor
public var popupStatusBarStyle: UIStatusBarStyle
Swift
@objc
+@MainActor
public var allowPopupHapticFeedbackGeneration: Bool
Swift
@objc
+@MainActor
public var softFeedbackGeneratorIntensity: CGFloat
Swift
@objc
+@MainActor
public var rigidFeedbackGeneratorIntensity: CGFloat
Swift
-public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool
+ @MainActor
+public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
@objc
+@MainActor
open class PBPopupRoundShadowImageView : UIView
Swift
-public let imageView: UIImageView
+ @MainActor
+public let imageView: UIImageView
Swift
@objc
+@MainActor
public var popupContentView: PBPopupContentView? { get }
Swift
@objc
+@MainActor
public var image: UIImage! { get set }
Swift
@objc
+@MainActor
public var cornerRadius: CGFloat { get set }
Swift
@objc
+@MainActor
public var shadowColor: UIColor? { get set }
Swift
@objc
+@MainActor
public var shadowOffset: CGSize { get set }
Swift
@objc
+@MainActor
public var shadowOpacity: Float { get set }
Swift
@objc
+@MainActor
public var shadowRadius: CGFloat { get set }
Swift
-public override init(frame: CGRect)
+ @MainActor
+public override init(frame: CGRect)
Swift
@objc
+@MainActor
convenience public init(image: UIImage, cornerRadius: CGFloat = 0.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = .zero, shadowOpacity: Float = 0.0, shadowRadius: CGFloat = 0.0)
Swift
-required public init?(coder aDecoder: NSCoder)
+ @MainActor
+required public init?(coder aDecoder: NSCoder)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-public var displayCornerRadius: CGFloat { get }
+ @MainActor
+public var displayCornerRadius: CGFloat { get }
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
@objc
+@MainActor
var enablePopupBarColorsDebug: Bool { get set }
Swift
@objc
+@MainActor
var usePopupBarSmoothGradient: Bool { get set }
Swift
@objc
+@MainActor
var usePopupBarLegacyShadow: Bool { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupBar: PBPopupBar! { get set }
Swift
@objc
+@MainActor
internal(set) weak var bottomBar: UIView! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupController: PBPopupController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContainerViewController: UIViewController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContentViewController: UIViewController! { get set }
Swift
@objc
+@MainActor
internal(set) weak var popupContentView: PBPopupContentView! { get set }
Swift
@objc
+@MainActor
var hidesPopupBarWhenPushed: Bool { get set }
Swift
@objc
+@MainActor
var additionalSafeAreaInsetsBottomForContainer: CGFloat { get set }
Swift
@objc
+@MainActor
func presentPopupBar(withPopupContentViewController controller: UIViewController!, openPopup: Bool, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func presentPopupBar(withPopupContentViewController controller: UIViewController!, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func dismissPopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func hidePopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func showPopupBar(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func presentPopup(withPopupContentViewController controller: UIViewController!, size: CGSize = .zero, isFloating: Bool = true, animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func dismissPopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func openPopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func closePopup(animated: Bool, completion: (() -> Swift.Void)? = nil)
Swift
@objc
+@MainActor
func updatePopupBarAppearance()
Swift
-func popupContainerViewController(for viewController: UIViewController? = nil) -> UIViewController?
+ @MainActor
+func popupContainerViewController(for viewController: UIViewController? = nil) -> UIViewController?
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-func popup<PopupContent>(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, @ViewBuilder popupContent: @escaping () -> PopupContent) -> some View where PopupContent : View
+ @MainActor
+func popup<PopupContent>(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, @ViewBuilder popupContent: @escaping () -> PopupContent) -> some View where PopupContent : View
Swift
-func popup(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, popupContentController: UIViewController) -> some View
+ @MainActor
+func popup(isPresented: Binding<Bool>, isOpen: Binding<Bool>? = nil, isHidden: Binding<Bool>? = nil, willPresent: (() -> Void)? = nil, onPresent: (() -> Void)? = nil, willDismiss: (() -> Void)? = nil, onDismiss: (() -> Void)? = nil, shouldOpen: (() -> Bool)? = nil, willOpen: (() -> Void)? = nil, onOpen: (() -> Void)? = nil, shouldClose: (() -> Bool)? = nil, willClose: (() -> Void)? = nil, onClose: (() -> Void)? = nil, tapGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, panGestureShouldBegin: ((_ state: PBPopupPresentationState) -> Bool)? = nil, popupContentController: UIViewController) -> some View
Swift
-func popupCloseButtonStyle(_ style: PBPopupCloseButtonStyle) -> some View
+ @MainActor
+func popupCloseButtonStyle(_ style: PBPopupCloseButtonStyle) -> some View
Swift
-func isFloating(_ floating: Bool) -> some View
+ @MainActor
+func isFloating(_ floating: Bool) -> some View
Swift
-func popupBarStyle(_ style: PBPopupBarStyle) -> some View
+ @MainActor
+func popupBarStyle(_ style: PBPopupBarStyle) -> some View
Swift
-func barStyle(_ style: UIBarStyle) -> some View
+ @MainActor
+func barStyle(_ style: UIBarStyle) -> some View
Swift
-func backgroundStyle(_ style: UIBlurEffect.Style) -> some View
+ @MainActor
+func backgroundStyle(_ style: UIBlurEffect.Style) -> some View
Swift
-func backgroundEffect(_ effect: UIBlurEffect) -> some View
+ @MainActor
+func backgroundEffect(_ effect: UIBlurEffect) -> some View
Swift
-func floatingBackgroundEffect(_ effect: UIBlurEffect) -> some View
+ @MainActor
+func floatingBackgroundEffect(_ effect: UIBlurEffect) -> some View
Swift
-func inheritsVisualStyleFromBottomBar(_ inherits: Bool) -> some View
+ @MainActor
+func inheritsVisualStyleFromBottomBar(_ inherits: Bool) -> some View
Swift
-func isTranslucent(_ translucent: Bool) -> some View
+ @MainActor
+func isTranslucent(_ translucent: Bool) -> some View
Swift
-func backgroundColor(_ color: UIColor) -> some View
+ @MainActor
+func backgroundColor(_ color: UIColor) -> some View
Swift
-func floatingBackgroundColor(_ color: UIColor) -> some View
+ @MainActor
+func floatingBackgroundColor(_ color: UIColor) -> some View
Swift
-func tintColor(_ color: UIColor) -> some View
+ @MainActor
+func tintColor(_ color: UIColor) -> some View
Swift
-func popupBarProgressViewStyle(_ style: PBPopupBarProgressViewStyle) -> some View
+ @MainActor
+func popupBarProgressViewStyle(_ style: PBPopupBarProgressViewStyle) -> some View
Swift
-func popupBarBorderViewStyle(_ style: PBPopupBarBorderViewStyle) -> some View
+ @MainActor
+func popupBarBorderViewStyle(_ style: PBPopupBarBorderViewStyle) -> some View
Swift
-func popupPresentationStyle(_ style: PBPopupPresentationStyle) -> some View
+ @MainActor
+func popupPresentationStyle(_ style: PBPopupPresentationStyle) -> some View
Swift
-func popupPresentationDuration(_ duration: TimeInterval) -> some View
+ @MainActor
+func popupPresentationDuration(_ duration: TimeInterval) -> some View
Swift
-func popupDismissalDuration(_ duration: TimeInterval) -> some View
+ @MainActor
+func popupDismissalDuration(_ duration: TimeInterval) -> some View
Swift
-func popupCompletionThreshold(_ threshold: CGFloat) -> some View
+ @MainActor
+func popupCompletionThreshold(_ threshold: CGFloat) -> some View
Swift
-func popupContentSize(_ size: CGSize) -> some View
+ @MainActor
+func popupContentSize(_ size: CGSize) -> some View
Swift
-func popupIgnoreDropShadowView(_ ignore: Bool) -> some View
+ @MainActor
+func popupIgnoreDropShadowView(_ ignore: Bool) -> some View
Swift
-func shouldExtendCustomBarUnderSafeArea(_ should: Bool) -> some View
+ @MainActor
+func shouldExtendCustomBarUnderSafeArea(_ should: Bool) -> some View
Swift
-func popupBarCustomView<PopupBarContent>(@ViewBuilder popupBarContent: @escaping () -> PopupBarContent) -> some View where PopupBarContent : View
+ @MainActor
+func popupBarCustomView<PopupBarContent>(@ViewBuilder popupBarContent: @escaping () -> PopupBarContent) -> some View where PopupBarContent : View
Swift
-func popupBarCustomizer(_ customizer: @escaping (_ popupBar: PBPopupBar) -> Void) -> some View
+ @MainActor
+func popupBarCustomizer(_ customizer: @escaping (_ popupBar: PBPopupBar) -> Void) -> some View
Swift
-func popupContentViewCustomizer(_ customizer: @escaping (_ popupBContentView: PBPopupContentView) -> Void) -> some View
+ @MainActor
+func popupContentViewCustomizer(_ customizer: @escaping (_ popupBContentView: PBPopupContentView) -> Void) -> some View
Swift
-func popupTitle<S>(_ localizedTitleKey: S, subtitle localizedSubtitleKey: S? = nil) -> some View where S : StringProtocol
+ @MainActor
+func popupTitle<S>(_ localizedTitleKey: S, subtitle localizedSubtitleKey: S? = nil) -> some View where S : StringProtocol
Swift
-func popupTitle<S>(verbatim title: S, subtitle: S? = nil) -> some View where S : StringProtocol
+ @MainActor
+func popupTitle<S>(verbatim title: S, subtitle: S? = nil) -> some View where S : StringProtocol
Swift
-func popupTitle(verbatim title: String, subtitle: String? = nil) -> some View
+ @MainActor
+func popupTitle(verbatim title: String, subtitle: String? = nil) -> some View
Swift
-func popupLabel(_ label: UILabel? = nil, sublabel: UILabel? = nil) -> some View
+ @MainActor
+func popupLabel(_ label: UILabel? = nil, sublabel: UILabel? = nil) -> some View
Swift
-func popupRoundShadowImage(_ image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0) -> some View
+ @MainActor
+func popupRoundShadowImage(_ image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = UIColor.black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0) -> some View
Swift
-func popupImage(_ image: Image) -> some View
+ @MainActor
+func popupImage(_ image: Image) -> some View
Swift
-func popupBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
+ @MainActor
+func popupBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
Swift
-func popupFloatingBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
+ @MainActor
+func popupFloatingBackgroundImage(_ image: UIImage, contentMode: UIView.ContentMode) -> some View
Swift
-func popupProgress(_ progress: Float) -> some View
+ @MainActor
+func popupProgress(_ progress: Float) -> some View
Swift
-func popupBarItems<LeadingContent>(@ViewBuilder leading: () -> LeadingContent) -> some View where LeadingContent : View
+ @MainActor
+func popupBarItems<LeadingContent>(@ViewBuilder leading: () -> LeadingContent) -> some View where LeadingContent : View
Swift
-func popupBarItems<TrailingContent>(@ViewBuilder trailing: () -> TrailingContent) -> some View where TrailingContent : View
+ @MainActor
+func popupBarItems<TrailingContent>(@ViewBuilder trailing: () -> TrailingContent) -> some View where TrailingContent : View
Swift
-func popupContentBackground<BackgroundContent>(@ViewBuilder background: () -> BackgroundContent) -> some View where BackgroundContent : View
+ @MainActor
+func popupContentBackground<BackgroundContent>(@ViewBuilder background: () -> BackgroundContent) -> some View where BackgroundContent : View
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
+
+
+ additionalAnimationsForOpening(popupController:popupContentViewController:isInteractive:)
+
+ Asks the delegate for addditional animations to add to the animator while opening the popup content view.
+ +Swift
+@objc
+optional func additionalAnimationsForOpening(popupController: PBPopupController, popupContentViewController: UIViewController, isInteractive: Bool) -> (() -> Void)?
+
+
+
+ popupController
+
+ |
+
+
+
+ The popup controller object. + |
+
+
+ popupContentViewController
+
+ |
+
+
+
+ The popup content view controller object. + |
+
A block containing the requested animations. The properties should be animatable.
+
@@ -635,6 +700,69 @@ Parameters
+
+
+ additionalAnimationsForClosing(popupController:popupContentViewController:isInteractive:)
+
+ Asks the delegate for addditional animations to add to the animator while closing the popup content view.
+ +Swift
+@objc
+optional func additionalAnimationsForClosing(popupController: PBPopupController, popupContentViewController: UIViewController, isInteractive: Bool) -> (() -> Void)?
+
+
+
+ popupController
+
+ |
+
+
+
+ The popup controller object. + |
+
+
+ popupContentViewController
+
+ |
+
+
+
+ The popup content view controller object. + |
+
A block containing the requested animations. The properties should be animatable.
+
@@ -1075,8 +1203,8 @@ Return Value
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
Swift
-public struct RoundShadowImage : UIViewRepresentable
+ @MainActor
+public struct RoundShadowImage : UIViewRepresentable
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
public struct RoundShadowImage : UIViewRepresentable
+ @MainActor
+public struct RoundShadowImage : UIViewRepresentable
Swift
-public init(image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = .black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0)
+ @MainActor
+public init(image: UIImage, cornerRadius: CGFloat = 3.0, shadowColor: UIColor = .black, shadowOffset: CGSize = CGSize(width: 0.0, height: 3.0), shadowOpacity: Float = 0.5, shadowRadius: CGFloat = 3.0)
Swift
-public func makeUIView(context: Context) -> RoundShadowImageView
+ @MainActor
+public func makeUIView(context: Context) -> RoundShadowImageView
Swift
-public func updateUIView(_ uiView: RoundShadowImageView, context: Context)
+ @MainActor
+public func updateUIView(_ uiView: RoundShadowImageView, context: Context)
Swift
-func cornerRadius(_ cornerRadius: CGFloat) -> RoundShadowImage
+ @MainActor
+func cornerRadius(_ cornerRadius: CGFloat) -> RoundShadowImage
Swift
-func shadowColor(_ shadowColor: UIColor) -> RoundShadowImage
+ @MainActor
+func shadowColor(_ shadowColor: UIColor) -> RoundShadowImage
Swift
-func shadowOffset(_ shadowOffset: CGSize) -> RoundShadowImage
+ @MainActor
+func shadowOffset(_ shadowOffset: CGSize) -> RoundShadowImage
Swift
-func shadowOpacity(_ shadowOpacity: Float) -> RoundShadowImage
+ @MainActor
+func shadowOpacity(_ shadowOpacity: Float) -> RoundShadowImage
Swift
-func shadowRadius(_ shadowRadius: CGFloat) -> RoundShadowImage
+ @MainActor
+func shadowRadius(_ shadowRadius: CGFloat) -> RoundShadowImage
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
The demo project uses:
PBPopupController 3.9.3 Docs (84% documented)
+PBPopupController 3.10.4 Docs (84% documented)
The demo project uses: