How can i change scrollview speed of "setContentOffset"?
scrollView.setContentOffset(CGPoint(x: 120.5, y: 0), animated: true)
How can i change scrollview speed of "setContentOffset"?
scrollView.setContentOffset(CGPoint(x: 120.5, y: 0), animated: true)
Wrap setContentOffset(offset, animated: false)
inside an animation block
UIView.animate(withDuration: 0.5, animations: {
scrollView.setContentOffset(CGPoint(x: 0, y: yOffset), animated: false)
})