title: How to autoscroll the scrollView horizontally?
body: <p>I am using this code to scroll the scrollview horizontally when sliding the scrollview.</p>
  
  <pre><code>func getScrollView() {
          upperScroll.delegate = self
          upperScroll.isPagingEnabled = true
          //        pageControll.numberOfPages = logoImage.count
          upperScroll.isScrollEnabled = true
  
          let scrollWidth: Int = Int(self.view.frame.width)
  
          upperScroll.contentSize = CGSize(width: CGFloat(scrollWidth), height:(self.upperScroll.frame.height))
          print(upperScroll.frame.size.width)
          upperScroll.backgroundColor = UIColor.clear
          for index in 0..&lt;logoImage.count {
              let xPosition = self.view.frame.width * CGFloat(index)
              upperScroll.layoutIfNeeded()
              let img = UIImageView(frame: CGRect(x: CGFloat(xPosition), y: 0, width: upperScroll.frame.size.width, height: self.upperScroll.frame.height))
              img.layoutIfNeeded()
              let str = logoImage[index]
              let url = URL(string: str)
  
              img.sd_setImage(with: url, placeholderImage: UIImage(named:"vbo_logo2.png"))
              upperScroll.addSubview(img)
          }
          view.addSubview(upperScroll)
          upperScroll.contentSize = CGSize(width: CGFloat((scrollWidth) * logoImage.count), height: self.upperScroll.frame.height)
      }
  </code></pre>
  
  <p>But i want to auto scroll? 
  How can i do this. Can anyone help me please.</p>