I'm currently building an app where I need to recognize a touch point inside a SVG map. So I have a map
with multiple rectangles
and when the user touches one of these rectangles
an action needs to be triggered. How can I solve this?
One option would be to mathematically calculate if the touch location lies in between a rectangle, but I am not a math genius.
My preferred option would be to use a framework. I found the SVGKit framework but unfortunately its written in Objective C.
You can use SVGKit for a Swift project. You have to use an umbrella header file, it is the 'master' header file for a framework.
Additional information