I have the mainViewController but I have an small UIView inside that is activated when you tap a MKAnnotationView in the MKMapKit, so I need that UIView to be draggable in any part of the screen.
An example screenshot of my app:

The circle is an example of point, I suppose I can drag for any point of the “small” UIView.
I tried using UITapGestureRecognizer but it didn’t worked as my code was not good enough and I could not made it draggable because it’s only the tap, not tap and move.
I hope you can help me.
UIPanGestureRecognizerinstead ofUITapGestureRecognizeruserInteractionEnabled = YESfor your view