SwiftSVG icon indicating copy to clipboard operation
SwiftSVG copied to clipboard

hitTest() giving wrong results

Open wimansha opened this issue 7 years ago • 1 comments

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.

wimansha avatar Jun 06 '18 12:06 wimansha

Hi @wimansha I have the same problem. Did you have any solution?

Ji11erBug avatar Sep 11 '18 13:09 Ji11erBug