How do I customizing UIScrollview's indicator position?
<p>I have a scrollview in the tableview's cell.</p>

<p>I'm trying to set the position of scrollview's indicator to the top.</p>

<p><a href="https://i.stack.imgur.com/RxN16.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RxN16.png" alt="enter image description here"></a></p>

<p>I had check the horizontal indicator.</p>

<p><a href="https://i.stack.imgur.com/Pn4on.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pn4on.gif" alt="enter image description here"></a></p>

<p>As you can see... I want set the position to the top. </p>

<p>My custom Indicator : Black and Blue Indicator.</p>

<p>Default Indicator : Bottom...grey Indicator..</p>

<p>I also had trying to set using the method</p>

<p>scrollView.scrollIndicatorInsets = UIEdgeInsets(top: 30, left: 0, bottom: 0, right: 10)</p>

<p>&lt;-It is not working for me</p>

<pre><code>class HorizontalCell: UITableViewCell, UIScrollViewDelegate {

    var picArray = [PFFile]()
    var picSectionArray = [UIImageView]()


    @IBOutlet weak var pagingView: UIScrollView!

    override func awakeFromNib() {
        super.awakeFromNib()

        // Initialization code
        let pagingViewHeight = self.pagingView.frame.height
        let pagingViewWidth = self.pagingView.frame.width


        //set section size
        picSectionArray.append(UIImageView(frame: CGRectMake(5, 5 + 3,  pagingViewWidth-10, pagingViewHeight-10 - 3)))
        picSectionArray.append(UIImageView(frame: CGRectMake(pagingViewWidth * 1 + 5, 5 + 3,  pagingViewWidth-10, pagingViewHeight-10 - 3)))
        picSectionArray.append(UIImageView(frame: CGRectMake(pagingViewWidth * 2 + 5, 5 + 3,  pagingViewWidth-10, pagingViewHeight-10 - 3)))


        //add imageview
        self.pagingView.addSubview(picSectionArray[0])
        self.pagingView.addSubview(picSectionArray[1])
        self.pagingView.addSubview(picSectionArray[2])


        self.pagingView.contentSize = CGSizeMake(self.pagingView.frame.width * 3, self.pagingView.frame.height)

//        self.pagingView.scrollIndicatorInsets = self.setScrollIndicatorInsets

        //declaire custom indicator &lt;--How do I implement?
        var scrollIndicator : UIView
        var indicator:UIView

        scrollIndicator = UIView(frame: CGRect(x: 0, y: 0, width: pagingViewWidth * 3, height: 3))
        indicator = UIView(frame: CGRect(x: 0, y: 0, width: pagingViewWidth / 3, height: 3))

        scrollIndicator.backgroundColor = UIColor.blackColor()
        indicator.backgroundColor = UIColor(red: 0.0/255, green: 109/255, blue: 242/255, alpha: 1)

        self.pagingView.addSubview(scrollIndicator)
        self.pagingView.addSubview(indicator)

    }

//It not working
    func scrollViewDidScroll(scrollView: UIScrollView) {
        print("didscroll")
    }

//It now working
    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        print("end scrolling")
    }
</code></pre>