Created
May 9, 2017 14:53
-
-
Save antoniocasero/713f83d779c6ba91c3092d9c23cd7265 to your computer and use it in GitHub Desktop.
ReloadData
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
public func reloadData(_ completion: @escaping () -> Void) { | |
UIView.animate(withDuration: 0, animations: { | |
self.reloadData() | |
}, completion: { _ in | |
completion() | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment