5

we are facing the issue after updating the Xcode 14.3

/Users/ankit/Library/Developer/Xcode/DerivedData/ProjectName/ dhfelfdsyohhzxfkhlcejfrdx/SourcePackages/checkouts/Kingfisher/Sources/SwiftUI/KFImageRenderer.swift:48:63 Initializer for conditional binding must have Optional type, not 'AnyView'

3 Answers3

13

I used to have the same problem.

pod 'Kingfisher', '7.6.1'

And then pod install, you can solve the problem.

Jason
  • 131
  • 2
11

If you are using Swift Package Manager,

  • Open Package Dependencies and double click on the Kingfisher
  • Change the version as 7.6.2
  • Done!
caglar
  • 279
  • 2
  • 5
-2

if you are using cocoa pods, verify your configuration and run pod update

slycrel
  • 4,275
  • 2
  • 30
  • 30