mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00

git-subtree-dir: submodules/Display git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
29 lines
735 B
Swift
29 lines
735 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
|
|
public enum PeekControllerContentPresentation {
|
|
case contained
|
|
case freeform
|
|
}
|
|
|
|
public enum PeerkControllerMenuActivation {
|
|
case drag
|
|
case press
|
|
}
|
|
|
|
public protocol PeekControllerContent {
|
|
func presentation() -> PeekControllerContentPresentation
|
|
func menuActivation() -> PeerkControllerMenuActivation
|
|
func menuItems() -> [PeekControllerMenuItem]
|
|
func node() -> PeekControllerContentNode & ASDisplayNode
|
|
|
|
func topAccessoryNode() -> ASDisplayNode?
|
|
|
|
func isEqual(to: PeekControllerContent) -> Bool
|
|
}
|
|
|
|
public protocol PeekControllerContentNode {
|
|
func updateLayout(size: CGSize, transition: ContainedViewLayoutTransition) -> CGSize
|
|
}
|