mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
24 lines
677 B
Swift
24 lines
677 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) {
|
|
var foundHit = false
|
|
if let subnodes = self.subnodes {
|
|
for subnode in subnodes {
|
|
if subnode.frame.contains(point) {
|
|
foundHit = true
|
|
break
|
|
}
|
|
}
|
|
}
|
|
if !foundHit {
|
|
return nil
|
|
}
|
|
}
|
|
return super.hitTest(point, with: event)
|
|
}
|
|
}
|