AlamofireImage 2.0 会话管理器问题

AlamofireImage 2.0 sessionManager issue

我在我的应用程序中使用新的 AlamofireImage 2.1.0 版本,并尝试使用

清除图像缓存
imageDownloader.sessionManager.session.configuration.URLCache?.removeCachedResponseForRequest(URLRequest)

我收到一个错误:

Value of type 'ImageDownloader' has no member 'sessionManager'

我也在使用 Alamofire 3.1.2

ImageDownloader 上的 sessionManager 属性 在 2.1.0 版本中有一个内部 ACL。我最近将位于 master 分支的 f35e4748 中的 ACL 更改为 public。如果您更新到 master,您的代码示例应该会按预期工作。

We'll get the 2.1.1 release cut here within the next couple of days.