Scenario:
I have a set of CGPaths. They are mostly just lines (i.e. not closed shapes). They are drawn on the screen in a UIView\'s draw
CGPath
UIView
In Swift
let area = stroke.copy(strokingWithWidth: 15, lineCap: .round, lineJoin: .round, miterLimit: 1) if (area.contains(point)) { ... }