PopMenuDefaultAction
public class PopMenuDefaultAction : NSObject, PopMenuAction
The default PopMenu action class.
-
Title of action.
Declaration
Swift
public let title: String?
-
Icon of action.
Declaration
Swift
public let image: UIImage?
-
Renderred view of action.
Declaration
Swift
public let view: UIView
-
Color of action.
Declaration
Swift
public let color: Color?
-
Handler of action when selected.
Declaration
Swift
public let didSelect: PopMenuActionHandler?
-
Text color of the label.
Declaration
Swift
public var tintColor: Color { get set }
-
Font for the label.
Declaration
Swift
public var font: UIFont { get set }
-
Rounded corner radius for action view.
Declaration
Swift
public var cornerRadius: CGFloat { get set }
-
Inidcates if the action is being highlighted.
Declaration
Swift
public var highlighted: Bool { get set }
-
Declaration
Swift
public static let textLeftPadding: CGFloat
-
Declaration
Swift
public static let iconLeftPadding: CGFloat
-
Declaration
Swift
public static let iconWidthHeight: CGFloat
-
Initializer.
Declaration
Swift
public init(title: String? = nil, image: UIImage? = nil, color: Color? = nil, didSelect: PopMenuActionHandler? = nil)
-
Load and configure the action view.
Declaration
Swift
public func renderActionView()
-
Highlight the view when panned on top, unhighlight the view when pan gesture left.
Declaration
Swift
public func highlightActionView(_ highlight: Bool)
-
When the action is selected.
Declaration
Swift
public func actionSelected(animated: Bool)