mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-12 06:19:22 +00:00

git-subtree-dir: submodules/Display git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
17 lines
409 B
Swift
17 lines
409 B
Swift
import UIKit
|
|
|
|
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
|
|
}
|
|
}
|