mchoe / SwiftSVG

A simple, performant, and lightweight SVG parser
Other
1.93k stars 230 forks source link

hitTest() giving wrong results #99

Open wimansha opened 6 years ago

wimansha commented 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.

Ji11erBug commented 6 years ago

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