使用AlamofireImage进行图像下载进度? [英] Image downloading with progress using AlamofireImage?

查看:82
本文介绍了使用AlamofireImage进行图像下载进度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用AlamofireImage下载图像并获得有关下载进度的某种反馈,同时利用其 UIImage扩展,图像过滤器和图像缓存的功能?

Is there any way to download an image using AlamofireImage and get some kind of feedback about the download progress while leveraging the power of it's UIImage Extensions, Image Filters and Image Cache?

我知道我可以回退到普通的 Alamofire.request + responseImage ,但是我想保持简单,并使用 UIImageView扩展

I know I can fallback to a plain Alamofire.request + responseImage but I'd like to keep things simple and make use of the UIImageView Extension.

谢谢!

推荐答案

当前无法使用AlamofireImage和 UIImageView 扩展名一起使用,以在下载时接收进度更新一个图像。最初未添加此功能的原因是,似乎大多数用户似乎都不需要此功能。我想讨论更多,看看我们是否真的希望在将来的版本中添加此功能。

There is not any way at the moment to use AlamofireImage alongside the UIImageView extension to receive progress updates when downloading an image. The reason it wasn't added initially was that it didn't seem like the majority of users would need such a feature. I would love to discuss more to see if this is a feature that we'd actually like to add to AlamofireImage in a future release.

您愿意开放吗?在您的用例中遇到问题?我只想确切地知道您希望它如何工作以及为什么您实际上需要进度报告。

Would you be willing to open up an issue walking through your use case? I would just like to know exactly how you would expect it to work and why you actually need the progress reporting.

这篇关于使用AlamofireImage进行图像下载进度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆