More than 1 year has passed since last update.

ImageDownloadRequestModifier (AnyModifier) を利用して URLRequest に変更を加えると良い。

var options: KingfisherOptionsInfo = [

let encodedAuth = 

let modifier: AnyModifier = AnyModifier.init(modify: { (req: URLRequest) -> URLRequest? in
    var r = req
    r.setValue("Basic \(encodedAuth)", forHTTPHeaderField: "Authorization")
    return r

imageView.kf.setImage(with: URL,
              placeholder: placeholder,
              options: options,
              progressBlock: nil,
              completionHandler: nil)
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.