When I quickly pull the collectionView, the screen will refresh twice or more times. It seems that because the value of "loading" is not updated immediately.
if (scrollView.isDragging == false && loading == false) {
loading = true
}
These codes will be executed many times. Do you have a good method to solve it?
Thanks
When I quickly pull the collectionView, the screen will refresh twice or more times. It seems that because the value of "loading" is not updated immediately.
if (scrollView.isDragging == false && loading == false) {
loading = true
}
These codes will be executed many times. Do you have a good method to solve it?
Thanks