Swiftgram/TelegramUI/ChatControllerTitlePanelNodeContainer.swift
2016-11-22 21:31:10 +03:00

21 lines
585 B
Swift

import Foundation
import AsyncDisplayKit
final class ChatControllerTitlePanelNodeContainer: ASDisplayNode {
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if self.bounds.contains(point) {
var foundHit = false
for subnode in self.subnodes {
if subnode.frame.contains(point) {
foundHit = true
break
}
}
if !foundHit {
return nil
}
}
return super.hitTest(point, with: event)
}
}