PBPopupCloseButton
@objc
@MainActor
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.
-
The current style of the popup close button. (read-only)
Note
In order to change the button’s style, set thepopupCloseButtonStyle
property of the popup content view.Declaration
Swift
@objc @MainActor public internal(set) var style: PBPopupCloseButtonStyle { get set }
-
The button’s background view. (read-only)
The value of this property will be
nil
ifstyle
is not set toPBPopupCloseButtonStyleRound
.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 @MainActor public private(set) var backgroundView: UIVisualEffectView? { get }
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
@MainActor override public var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
@MainActor public convenience init(style: PBPopupCloseButtonStyle)
-
Undocumented
Declaration
Swift
@MainActor required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
@objc @MainActor public func setButtonStateStationary()
-
Undocumented
Declaration
Swift
@objc @MainActor public func setButtonStateTransitioning()