title: How to Make Loading in Image Slideshow Swift
body: <p>so, i'm using swift library <a href="https://github.com/zvonicek/ImageSlideshow" rel="nofollow noreferrer">ImageSlideshow</a> and use KingfisherSource to set image. I get the url image from Alamofire request</p>
  
  <p>How to make loading/activity indicator before image showed?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>var arrayImage = [InputSource]()
  
  for data in items{                  
        let Menu = ModelBanner()                  
        Menu.id = (data["id"].intValue)
        Menu.banner = (data["banner"].stringValue)
        self.listBanner.append(Menu)
        self.arrayImage.append(KingfisherSource(urlString: data["banner"].stringValue)!)                       
      }
        self.slideImage.contentScaleMode = .scaleAspectFill
        self.slideImage.setImageInputs(self.arrayImage)
  </code></pre>