You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have collection view with horizontal scrolling of images, those images are placing correct with original colour, after changing the images tint colour using this , the images are rotated.
let headers: [String: String] = BaseService().allheaders(headers: nil)
var colorOption = Option(imagePreprocessor: TintImageProcessor(tintColor: .black))
colorOption.downloaderMaker = {
return ImageDownloader(modifyRequest: {
var request = $0
for (headerField, headerValue) in headers {
request.addValue(headerValue, forHTTPHeaderField: headerField)
}
return request
})
}
self.setImage(url: imageUrl, option: colorOption) { (result) in
switch result {
case .value(let image):
completion(image)
case .error(let error):
completion(nil)
}
}
The text was updated successfully, but these errors were encountered:
I have collection view with horizontal scrolling of images, those images are placing correct with original colour, after changing the images tint colour using this , the images are rotated.
let headers: [String: String] = BaseService().allheaders(headers: nil)
The text was updated successfully, but these errors were encountered: