PBPopupCloseButton

@objc
public class PBPopupCloseButton : UIButton

A button added to the content’s view when the popup content view controller is presented. The user can dismiss the popup content view controller by either swiping or tapping this popup close button.

Public Properties

  • The current style of the popup close button. (read-only)

    Note

    In order to change the button’s style, set the popupCloseButtonStyle property of the popup content view.

    Declaration

    Swift

    @objc
    public private(set) var style: PBPopupCloseButtonStyle { get }
  • The button’s background view. (read-only)

    The value of this property will be nil if style is not set to PBPopupCloseButtonStyleRound.

    Note

    Although this property is read-only, its own properties are read/write. Use these properties to configure the appearance and behavior of the button’s background view.

    Declaration

    Swift

    @objc
    public private(set) var backgroundView: UIVisualEffectView? { get }

Private Properties

  • The natural size for the receiving view, considering only properties of the view itself.

    Declaration

    Swift

    override public var intrinsicContentSize: CGSize { get }

Public Init

Public Methods