import Foundation import UIKit import AsyncDisplayKit import Display import SwiftSignalKit public final class GalleryControllerInteraction { public let presentController: (ViewController, ViewControllerPresentationArguments?) -> Void public let dismissController: () -> Void public let replaceRootController: (ViewController, ValuePromise?) -> Void public init(presentController: @escaping (ViewController, ViewControllerPresentationArguments?) -> Void, dismissController: @escaping () -> Void, replaceRootController: @escaping (ViewController, ValuePromise?) -> Void) { self.presentController = presentController self.dismissController = dismissController self.replaceRootController = replaceRootController } } open class GalleryFooterContentNode: ASDisplayNode { public var requestLayout: ((ContainedViewLayoutTransition) -> Void)? public var controllerInteraction: GalleryControllerInteraction? open func updateLayout(size: CGSize, metrics: LayoutMetrics, leftInset: CGFloat, rightInset: CGFloat, bottomInset: CGFloat, contentInset: CGFloat, transition: ContainedViewLayoutTransition) -> CGFloat { return 0.0 } open func animateIn(fromHeight: CGFloat, previousContentNode: GalleryFooterContentNode, transition: ContainedViewLayoutTransition) { } open func animateOut(toHeight: CGFloat, nextContentNode: GalleryFooterContentNode, transition: ContainedViewLayoutTransition, completion: @escaping () -> Void) { completion() } }