Swiftgram/TelegramUI/GalleryFooterContentNode.swift
Ilya Laktyushin 41a0f302f3 Updated Youtube chrome removal
Fixed group sticker pack settings button showing for non-admins
2018-11-06 22:03:04 +04:00

33 lines
1.4 KiB
Swift

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