mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-26 07:21:54 +00:00
16 lines
396 B
Swift
16 lines
396 B
Swift
|
|
public enum ContextMenuActionContent {
|
|
case text(title: String, accessibilityLabel: String)
|
|
case icon(UIImage)
|
|
}
|
|
|
|
public struct ContextMenuAction {
|
|
public let content: ContextMenuActionContent
|
|
public let action: () -> Void
|
|
|
|
public init(content: ContextMenuActionContent, action: @escaping () -> Void) {
|
|
self.content = content
|
|
self.action = action
|
|
}
|
|
}
|