Closed kohtenko closed 2 years ago
KingfisherManager.shared.downloader.sessionConfiguration = KingfisherSetup.configuration
import Foundation
import netfox
final class KingfisherSetup {
static let configuration: URLSessionConfiguration = {
let configuration = URLSessionConfiguration.default
configuration.protocolClasses?.insert(NFXProtocol.self, at: 0) <--- THIS :)
configuration.requestCachePolicy = .returnCacheDataElseLoad
configuration.urlCache = .shared
return configuration
}()
}
Closed due to inactivity.
While using https://github.com/onevcat/Kingfisher to download, cache and display images, the library doesn't show those downloads at all