mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-21 01:57:32 +00:00
28 lines
769 B
Swift
28 lines
769 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import TelegramPresentationData
|
|
|
|
public protocol PinchController: ViewController {
|
|
func addRelativeContentOffset(_ offset: CGPoint, transition: ContainedViewLayoutTransition)
|
|
}
|
|
|
|
public var makePinchControllerImpl: ((
|
|
_ sourceNode: PinchSourceContainerNode,
|
|
_ disableScreenshots: Bool,
|
|
_ getContentAreaInScreenSpace: @escaping () -> CGRect
|
|
) -> PinchController)?
|
|
|
|
public func makePinchController(
|
|
sourceNode: PinchSourceContainerNode,
|
|
disableScreenshots: Bool = false,
|
|
getContentAreaInScreenSpace: @escaping () -> CGRect
|
|
) -> PinchController {
|
|
return makePinchControllerImpl!(
|
|
sourceNode,
|
|
disableScreenshots,
|
|
getContentAreaInScreenSpace
|
|
)
|
|
}
|