mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
22 lines
717 B
Swift
22 lines
717 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
|
|
final class ChatControllerTitlePanelNodeContainer: ASDisplayNode {
|
|
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
|
if self.bounds.contains(point) {
|
|
if let subnodes = self.subnodes {
|
|
for subnode in subnodes {
|
|
if subnode.frame.contains(point) {
|
|
if let result = subnode.view.hitTest(self.view.convert(point, to: subnode.view), with: event) {
|
|
return result
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
return super.hitTest(point, with: event)
|
|
}
|
|
}
|