Type of expression is ambiguous without more context
bbehradd opened this issue · comments
bbehradd commented
when using AlamofireSource(urlString: "imageURL")
inside setImageInputs
function, i'm getting this error:
Type of expression is ambiguous without more context
but when i'm using ImageSource(image: UIImage(named: "imageName")!)
the error is gone.
this error also happening for KingfisherSource(urlString: "imageURL")
Asad Ali Choudhry commented
KingfisherSource(urlString: "imageURL") gives an optional object, just do its force unwrapping then it will be fine, like this.
slideShow.setImageInputs([
KingfisherSource(urlString: "imageURL")!
])