Swift iOS - Detect Touch Drag Enter UIView from outside UIView -


how event touch, anywhere on screen, draged , enters specific uiview?

how can it, in simple way, in swift ios?

an example of want achieve shown below:

enter image description here

override method of controller

override func touchesmoved(touches: set<uitouch>, withevent event: uievent?) {      } 

than check if touch inside of views rect using function cgrectcontainspoint


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -