Files
Swiftgram/submodules/ContextUI/Sources/PinchController.swift
2026-01-13 19:21:49 +04:00

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
)
}