mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Voice Chat volume UI
This commit is contained in:
@@ -73,8 +73,18 @@ public final class ContextMenuActionItem {
|
||||
}
|
||||
}
|
||||
|
||||
public protocol ContextMenuCustomNode: ASDisplayNode {
|
||||
func updateLayout(constrainedWidth: CGFloat) -> (CGSize, (CGSize, ContainedViewLayoutTransition) -> Void)
|
||||
func updateTheme(presentationData: PresentationData)
|
||||
}
|
||||
|
||||
public protocol ContextMenuCustomItem {
|
||||
func node(presentationData: PresentationData, getController: @escaping () -> ContextController?, actionSelected: @escaping (ContextMenuActionResult) -> Void) -> ContextMenuCustomNode
|
||||
}
|
||||
|
||||
public enum ContextMenuItem {
|
||||
case action(ContextMenuActionItem)
|
||||
case custom(ContextMenuCustomItem)
|
||||
case separator
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user