Swiftgram/submodules/Display/Source/PassthroughContainerNode.swift
2020-09-16 15:08:38 +03:00

17 lines
497 B
Swift

import Foundation
import UIKit
import AsyncDisplayKit
public final class PassthroughContainerNode: ASDisplayNode {
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if let subnodes = self.subnodes {
for subnode in subnodes {
if let result = subnode.view.hitTest(self.view.convert(point, to: subnode.view), with: event) {
return result
}
}
}
return nil
}
}