Swift : UIPageControl auto swipe in iOS 9
<p>I've ImageView placed inside UICollectionViewCell and a PageControl below it. Both are connected via programmatically.</p>

<p>However, I want <code>auto swipe (say every 5 seconds) the images should auto swipe.</code> If user swipe manually then too it should happen. Also, when page control reaches to last it should begin with first.</p>

<p><a href="https://i.stack.imgur.com/ObS9E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ObS9E.png" alt="Screenshot"></a></p>

<p>Below is code that I've used :</p>

<pre><code> var offersImages: [UIImage] = [     //Array of Banners
        UIImage(named: "default-banner.png")!,
        UIImage(named: "default-banner.png")!,
        UIImage(named: "default-banner.png")!,
        UIImage(named: "default-banner.png")!,
    ]

 override func viewDidLoad() {
        super.viewDidLoad()

        self.objPageControl.currentPage = 0
        self.objPageControl.numberOfPages = self.offersImages.count
    }

 func scrollViewDidScroll(scrollView: UIScrollView) {
        let pageWidth : CGFloat = self.objBannerCollectionView.frame.size.width
        self.objPageControl.currentPage = Int(self.objBannerCollectionView.contentOffset.x/pageWidth)
    }  
</code></pre>

<p>How can this be done in Swift?</p>