Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chriswebb09/c9192f9e20f7a52cde88354db36f4b49 to your computer and use it in GitHub Desktop.
Save chriswebb09/c9192f9e20f7a52cde88354db36f4b49 to your computer and use it in GitHub Desktop.
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