Created
January 28, 2020 08:44
-
-
Save Mukeshawal/b5479118d28ac15f4d2a037c7c1e45db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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