title: Swift custom the scroll indicator width of scrollView
body: <p>I am doing an ios app. I need to implement a customize scrollbar with red color and width = 10 for my scrollView. As I tried to set scroll indicator as UIImage so that I can change the color easily but I do not how to set the width of indicator, even though I tried to set UIImage frame size with no luck.Can anyone help me? Thanks</p>
  
  <p>Code for customize scroll indicator color:</p>
  
  <pre><code>    func scrollViewDidScroll(scrollView: UIScrollView){
      let verticalIndicator: UIImageView = (scrollView.subviews[(scrollView.subviews.count - 1)] as! UIImageView)
      verticalIndicator.backgroundColor = UIColor.redColor()
  
      //        verticalIndicator.layer.borderWidth = 10
      print("scroll")
  }
  </code></pre>