PopMenuViewController
final public class PopMenuViewController : UIViewController
Undocumented
-
Delegate instance for handling callbacks.
Declaration
Swift
public weak var delegate: PopMenuViewControllerDelegate?
-
Appearance configuration.
Declaration
Swift
public var appearance: PopMenuAppearance
-
Background overlay that covers the whole screen.
Declaration
Swift
public let backgroundView: UIView
-
Main root view that has shadows.
Declaration
Swift
public let containerView: UIView
-
Main content view.
Declaration
Swift
public let contentView: PopMenuGradientView
-
The view contains all the actions.
Declaration
Swift
public let actionsView: UIStackView
-
The calculated content frame.
Declaration
Swift
public lazy var contentFrame: CGRect { get set }
-
Determines whether to dismiss menu after an action is selected.
Declaration
Swift
public var shouldDismissOnSelection: Bool
-
Determines whether the pan gesture is enabled on the actions.
Declaration
Swift
public var shouldEnablePanGesture: Bool
-
Determines whether enable haptics for iPhone 7 and up.
Declaration
Swift
public var shouldEnableHaptics: Bool
-
Handler for when the menu is dismissed.
Declaration
Swift
public var didDismiss: ((Bool) -> Void)?
-
Actions of menu.
Declaration
Swift
public private(set) var actions: [PopMenuAction]
-
Undocumented
Declaration
Swift
public convenience init(sourceView: AnyObject? = nil, actions: [PopMenuAction], appearance: PopMenuAppearance? = nil)
-
Load view entry point.
Declaration
Swift
public override func loadView()
-
Add a new action to the menu.
Declaration
Swift
public func addAction(_ action: PopMenuAction)
Parameters
action
Action to be added
-
Undocumented
Declaration
Swift
public override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation { get }
-
Set status bar style.
Declaration
Swift
public override var preferredStatusBarStyle: UIStatusBarStyle { get }
-
Custom presentation animation.
Declaration
Swift
public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning?
-
Custom dismissal animation.
Declaration
Swift
public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning?