PopMenuAction
@objc
public protocol PopMenuAction : NSObjectProtocol
Customize your own action and conform to PopMenuAction
protocol.
-
Title of the action.
Declaration
Swift
var title: String? { get }
-
Image of the action.
Declaration
Swift
var image: UIImage? { get }
-
Container view of the action.
Declaration
Swift
var view: UIView { get }
-
The initial color of the action.
Declaration
Swift
var color: Color? { get }
-
The handler of action.
Declaration
Swift
var didSelect: PopMenuActionHandler? { get }
-
Left padding when texts-only.
Declaration
Swift
static var textLeftPadding: CGFloat { get }
-
Icon left padding when icons are present.
Declaration
Swift
static var iconLeftPadding: CGFloat { get }
-
Icon sizing.
Declaration
Swift
static var iconWidthHeight: CGFloat { get }
-
The color to set for both label and icon.
Declaration
Swift
var tintColor: UIColor { get set }
-
The font for label.
Declaration
Swift
var font: UIFont { get set }
-
The corner radius of action view.
Declaration
Swift
var cornerRadius: CGFloat { get set }
-
Is the view highlighted by gesture.
Declaration
Swift
var highlighted: Bool { get set }
-
Render the view for action.
Declaration
Swift
func renderActionView()
-
Called when the action gets selected.
Declaration
Swift
@objc optional func actionSelected(animated: Bool)
-
Type alias for selection handler.
Declaration
Swift
typealias PopMenuActionHandler = (PopMenuAction) -> Void