エラー内容
Xcode14.3にアプデしたところKingfisher
で以下のようなエラーが発生し、アプリがビルドできなくなってしまった
if let placeholder = context.placeholder, let view = placeholder(binder.progress)
^
error: initializer for conditional binding must have Optional type, not 'AnyView'
環境
Xcode:14.3
Kingfisher:7.2
参考記事
こちらの記事が解決に導いてくれそう
対処法(結論)
バージョンを7.6.2にすれば問題なく動作する模様。
私は以下のようにPodのバージョンを設定した。
.pod
pod 'Kingfisher', '~> 7.6'