I want to allow user to drag UIView inside a limited area of its super view. Trying the following simple code:
func handlePanForImage(recognizer: UIPanGestur
It's a very simple function that just checks if the given point is inside some area on the screen you define:
static func insideDraggableArea(point : CGPoint) -> Bool { return point.x > 50 && point.x < 200 && point.y > 20 && point.y < 400 }