         
         // Page Control
         if visiblePageControl {
-            pageControl.frame = CGRect.zero
-            pageControl.numberOfPages = imageResources()!.count
-            pageControl.isUserInteractionEnabled = false
             view.addSubview(pageControl)
             layoutPageControl()
         }

        scrollView.alwaysBounceVertical = true
        scrollView.isScrollEnabled = true
        scrollView.accessibilityLabel = "PhotoSliderScrollView"
        view.addSubview(scrollView)
        layoutScrollView()



public class ViewController:UIViewController {

    lazy var scrollView: UIScrollView = {
        let scrollView = UIScrollView(frame: CGRect(
            x: 0, y: 0, width: self.view.bounds.width, height: self.view.bounds.height)
        )
        scrollView.isPagingEnabled = true
        scrollView.showsHorizontalScrollIndicator = false
        scrollView.showsVerticalScrollIndicator = false
