Skip to content

Instantly share code, notes, and snippets.

@Mukeshawal
Created January 28, 2020 08:44
Show Gist options
  • Save Mukeshawal/b5479118d28ac15f4d2a037c7c1e45db to your computer and use it in GitHub Desktop.
Save Mukeshawal/b5479118d28ac15f4d2a037c7c1e45db to your computer and use it in GitHub Desktop.
// call this function after your desired task after refreshing is completed
func endRefreshing(){
circleLayer.removeAllAnimations()
UIView.animate(withDuration: 0.35, animations: {[weak self] in
self?.containerScrollView?.contentInset.top = 0.0
}, completion: {[weak self] _ in
self?.refreshingStatus = false
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment