Я хочу иметь возможность определить местоположение x, y, где пользователь щелкнул UIImageView в Swift.
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { if let touch = touches.first { let position = touch.location(in: imageView) print(position.x) print(position.y) } }