zvonicek / ImageSlideshow

Swift image slideshow with circular scrolling, timer and full screen viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type of expression is ambiguous without more context

bbehradd opened this issue · comments

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")

KingfisherSource(urlString: "imageURL") gives an optional object, just do its force unwrapping then it will be fine, like this.

slideShow.setImageInputs([
            KingfisherSource(urlString: "imageURL")!
        ])