Open wimansha opened 6 years ago
I'm trying to get the tapped layer from svgView using below code:
let hitLayer = self.svgView?.layer.hitTest(touchPoint)
But it is always giving the same layer for all points.
Before coming to SwiftSVG I was using SVGKit (ObjC library) which was always giving the correct layer for hitTest.
Hi @wimansha I have the same problem. Did you have any solution?
I'm trying to get the tapped layer from svgView using below code:
let hitLayer = self.svgView?.layer.hitTest(touchPoint)
But it is always giving the same layer for all points.
Before coming to SwiftSVG I was using SVGKit (ObjC library) which was always giving the correct layer for hitTest.