使用AlamofireImage进行图像下载进度?

编程入门 行业动态 更新时间:2024-10-05 23:21:54
本文介绍了使用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进行图像下载进度?

本文发布于:2023-11-26 18:54:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进度   图像   AlamofireImage

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!