Update API

This commit is contained in:
Ali
2020-03-18 14:10:27 +04:00
parent da4c5a70e5
commit 5d367726c6
11 changed files with 1292 additions and 1270 deletions

View File

@@ -5,18 +5,16 @@ 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 let result = subnode.view.hitTest(self.view.convert(point, to: subnode.view), with: event) {
return result
}
}
}
}
if !foundHit {
return nil
}
return nil
}
return super.hitTest(point, with: event)
}