Taking this forward for Swift 3 - I'm using:
override func touchesBegan(_ touches: Set, with event: UIEvent?) {
if let touch = touches.first {
let position = touch.location(in: self)
print(position.x)
print(position.y)
}
}
Happy to hear any clearer or more elegant ways to produce the same result