I\'m using an image slideshow from here:
iconArr = [UIImage(named: \"home-min\")!,UIImage(named: \"category-
min\")!,UIImage(named: \"settings-min\")!,UI
you should try this way for sure, because you reset inputs in your for-loop
var imageSource: [ImageSource] = []
for image in self.iconArr {
let img = image
imageSource.append(ImageSource(image: img))
}
self.SlideShow.setImageInputs(imageSource)
As sooper stated, can be done this way
let imageSources = self.iconArr.map { ImageSource(image: $0) }