When trying to scroll a view by touching and dragging on a text field, similarly to how you would scroll around on the edit contacts view on the iPhone, the view will not mo
Setting delaysContentTouches
to true
didn't work for me either. What did was iterating through the scrollview's gesture recognizers and setting each of their delaysTouchesBegan
and cancelsTouchesInView
to true
and false
, respectively:
scrollView.gestureRecognizers?.forEach {
$0.delaysTouchesBegan = true; $0.cancelsTouchesInView = false
}