Created
May 11, 2017 09:53
-
-
Save chriswebb09/c9192f9e20f7a52cde88354db36f4b49 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
extension ExampleViewController: DownloadDelegate { | |
func downloadProgressUpdated(for progress: Float) { | |
DispatchQueue.main.async { | |
self.progressView.progress += progress | |
self.downloadProgressLabel.text = String(format: "%.1f%%", progress * 100) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment