title: load multiple images to imageslideshow in swift5
body: <p>I am fetching data using alamofire to my app then to tableview then to details view, I have two columns of images in my database one named &quot;document&quot; and the second named &quot;document2&quot; some rows has images in document and others on document2, so when I load the images using my code below it loads only one image</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import UIKit
  import Alamofire
  import SwiftyJSON
  import SDWebImage
  import SwifterSwift
  import Kingfisher
  import ImageSlideshow
  
  
  
  
  class DetailsViewController: UIViewController {
  
  
  var data: JSON?
  
  
  @IBOutlet weak var imageView: UIImageView!
  @IBOutlet weak var imageView2: UIImageView!
  
  @IBOutlet weak var AdTitle: UILabel!
  @IBOutlet weak var AdDetails: UITextView!
  @IBOutlet weak var ContactBtn: UIButton!
  @IBOutlet weak var ShareBtn: UIButton!
  
  @IBOutlet weak var DateLabel: UILabel!
  @IBOutlet weak var CityLabel: UILabel!
  @IBOutlet weak var imagesSlideshowView: ImageSlideshow!
  
  
  
  
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      
      if let id = Helper.getUserId() {
          ContactBtn.isHidden = false
      } else {
          ContactBtn.isHidden = true
      }
      
      AdDetails.textContainer.heightTracksTextView = true
      AdDetails.isScrollEnabled = false
      //self.navigationController?.navigationBar.semanticContentAttribute = .forceRightToLeft
      let PostTitle = data!["title"].string
      self.title = PostTitle!
                  
       
  
  
      
      let imageUrl = data!["document"].string
      let url = NSURL(string:("https://site/uploads/" + imageUrl!))
  
      let imageUrl2 = data!["document2"].string
      let Image2url = NSURL(string:("https://site/uploads/" + imageUrl2!))
      imageView.sd_setImage(with: url as URL?, placeholderImage: UIImage(named: "placeholder.png"))
      
          
      
      CityLabel.text = data!["city"].string
      AdTitle.text = data!["title"].string
      AdDetails.text = data!["message"].string
      
      let PostTime = data!["time"].string!
      
      let startDate = PostTime
      
      let dateFormatter = DateFormatter()
      dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
      let date = dateFormatter.date(from: startDate)
      
      let converted = date?.timeAgoDisplay()
      DateLabel.text = date?.timeAgoDisplay()
      
      let uploadsBaseUrl = "https://site/uploads/"
      var imagesSlideshowView = ImageSlideshow()
      if let image1urlString = data?["document"].string,
         let image1url = URL(string: uploadsBaseUrl + image1urlString),
         let image2urlString = data?["document2"].string,
         let image2url = URL(string: uploadsBaseUrl + image2urlString) {
  
          var imagesSources: [KingfisherSource] = []
          imagesSources.append(KingfisherSource(url: image1url))
          imagesSources.append(KingfisherSource(url: image2url))
  
          imagesSlideshowView.setImageInputs(imagesSources)
          let pageIndicator = UIPageControl()
          pageIndicator.currentPageIndicatorTintColor = UIColor.lightGray
          pageIndicator.pageIndicatorTintColor = UIColor.black
          imagesSlideshowView.pageIndicator = pageIndicator
          
      }
      </code></pre>
  </div>
  </div>
  </p>
  <p>now I added a view and installed the required libs,</p>
  <p>ImageSlideshow
  Kingfisher
  ImageSlideshow/Kingfisher
  ImageSlideshow/Alamofire
  ImageSlideshow/SDWebImage
  still images are not passed to the view ?!</p>
  <p>Updated the code to make it as slideshow as suggested by @denis-kozhukhov</p>