ChatMessageActionItem
Protocol for action item.
Action items are then showed in _ChatMessageActionsView
.
Setup individual item by creating new instance that conforms to this protocol.
public protocol ChatMessageActionItem
Default Implementations
isPrimary
public var isPrimary: Bool
isDestructive
public var isDestructive: Bool
Requirements
title
Title of ChatMessageActionItem
.
var title: String
icon
Icon of ChatMessageActionItem
.
var icon: UIImage
isPrimary
Marks whether ChatMessageActionItem
is primary.
Based on this property, some UI properties can be made.
Default value is false
.
var isPrimary: Bool
isDestructive
Marks whether ChatMessageActionItem
is destructive.
Based on this property, some UI properties can be made.
Default value is false
var isDestructive: Bool
action
Action that should be triggered when tapping on ChatMessageActionItem
.
var action: (ChatMessageActionItem) -> Void