mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
no message
This commit is contained in:
@@ -87,8 +87,6 @@ final class ChatMessageDateHeaderNode: ListViewItemHeaderNode {
|
||||
private var flashingOnScrolling = false
|
||||
private var stickDistanceFactor: CGFloat = 0.0
|
||||
|
||||
//private let testNode = ASDisplayNode()
|
||||
|
||||
init(timestamp: Int32, theme: PresentationTheme, strings: PresentationStrings) {
|
||||
self.timestamp = timestamp
|
||||
self.theme = theme
|
||||
@@ -111,7 +109,7 @@ final class ChatMessageDateHeaderNode: ListViewItemHeaderNode {
|
||||
//self.testNode.backgroundColor = .black
|
||||
//self.testNode.isLayerBacked = true
|
||||
|
||||
super.init(layerBacked: true, dynamicBounce: true, isRotated: true, seeThrough: false)
|
||||
super.init(layerBacked: false, dynamicBounce: true, isRotated: true, seeThrough: false)
|
||||
|
||||
self.transform = CATransform3DMakeRotation(CGFloat.pi, 0.0, 0.0, 1.0)
|
||||
|
||||
@@ -162,6 +160,12 @@ final class ChatMessageDateHeaderNode: ListViewItemHeaderNode {
|
||||
}*/
|
||||
}
|
||||
|
||||
override func didLoad() {
|
||||
super.didLoad()
|
||||
|
||||
self.view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(self.tapGesture(_:))))
|
||||
}
|
||||
|
||||
func updateThemeAndStrings(theme: PresentationTheme, strings: PresentationStrings) {
|
||||
self.theme = theme
|
||||
self.strings = strings
|
||||
@@ -229,4 +233,20 @@ final class ChatMessageDateHeaderNode: ListViewItemHeaderNode {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if self.labelNode.alpha.isZero {
|
||||
return nil
|
||||
}
|
||||
if self.backgroundNode.frame.contains(point) {
|
||||
return self.view
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@objc func tapGesture(_ recognizer: UITapGestureRecognizer) {
|
||||
if case .ended = recognizer.state {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user