func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
hideMuneViewAnimation()
let translatedPoint = scrollView.panGestureRecognizer.translation(in: scrollView)
if translatedPoint.x < 0 {
// 右滑
print("+++")
}
if translatedPoint.x > 0 {
// 左化
print("---")
}
}
网友评论