mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-27 15:59:58 +00:00
16 lines
361 B
Swift
16 lines
361 B
Swift
|
|
public enum ContextMenuActionContent {
|
|
case text(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
|
|
}
|
|
}
|