是否可以使用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进行图像下载进度?
发布评论