To populate the slideshow, use the setImageInputs method on your ImageSlideshow instance. This method accepts an array of objects conforming to the InputSource protocol.
Commonly used InputSource types include:
ImageSource: For UIImage objects.AlamofireSource: For Alamofire-based URL loading (requires pod "ImageSlideshow/Alamofire").AFURLSource: For AFNetworking-based URL loading (requires pod "ImageSlideshow/AFURL").SDWebImageSource: For SDWebImage-based URL loading (requires pod "ImageSlideshow/SDWebImage").KingfisherSource: For Kingfisher-based URL loading (requires pod "ImageSlideshow/Kingfisher").ParseSource: For Parse-based file loading (requires pod "ImageSlideshow/Parse").
You can also implement the InputSource protocol to create custom sources.
slideshow.setImageInputs([
ImageSource(image: UIImage(named: "myImage"))!,
ImageSource(image: UIImage(named: "myImage2"))!,
AlamofireSource(urlString: "https://images.unsplash.com/photo-1432679963831-2dab49187847?w=1080"),
KingfisherSource(urlString: "https://images.unsplash.com/photo-1432679963831-2dab49187847?w=1080"),
ParseSource(file: PFFile(name:"image.jpg", data:data))
])