Open CharlinFeng opened 9 years ago
+1
Just create your own.. just study activity indicator using swift and integrate that..
+1
I have a similar/related question:
I'm currently using the LoadingImageView library (https://github.com/ggamecrazy/LoadingImageView) to show a progress indicator before the images finish loading. I start off the process by calling:
func downloadImage(URL: NSURL, placeholder:UIImage?)->NSURLSessionDownloadTask
on the LoadingImageView object which kicks off the download and loads the image. Is there a good way to integrate this properly with this library and have the images be cached?
+1
+1
+1 it would definitely be pretty awesome to have a standard HanekeSwift API for registering a block to take progress reports or something of that nature. Think Alamofire .downloadProgress
:
Alamofire.download("https://httpbin.org/image/png")
.downloadProgress { progress in
// Update your UI here, or something along those lines.
print("Download Progress: \(progress.fractionCompleted)")
}
// ...
Looks like this issue was closed, but the referenced issue above doesn't include any additional info and was also closed. Was some code merged which implements this?
I need to the progress of downloading, with the indicator, how can I get the download progress of the picture?