当我编译 AlamofireImage-3.1 时,出现以下错误。我也使用 Alamofire-4.0,但它似乎运行良好。
@discardableResult
public func responseImage(
_ imageScale: CGFloat = DataRequest.imageScale,
inflateResponseImage: Bool = true,
completionHandler: @escaping (DataResponse<Image>) -> Void)
-> Self
{
return response(
responseSerializer: DataRequest.imageResponseSerializer(
imageScale: imageScale,
inflateResponseImage: inflateResponseImage
),
completionHandler: completionHandler
)
}