如何使用setContentOffset更改集合视图的滚动动画持续时间?
self.collectionView.setContentOffset(CGPoint(x: 0, y:yOffset), animated: true)
这也不起作用...
UIView.animate(withDuration: 5, animations: {
self.collectionView.setContentOffset(
CGPoint(x: 0, y: yOffset), animated: false)
})