   override func viewDidLoad() {
     super.viewDidLoad()
 
+    layout()
+
+    dataSource = self
+    delegate = self
     setViewControllers([pages.first!], direction: .forward, animated: true,
                        completion: nil)
 
-    layout()
+    control.currentPage = 1
+    control.numberOfPages = pages.count
   }
 
   private func layout() {

    return index
  }
}


    self.view.addSubviews([control, btnContinue, btnSkip])

    control.currentPageIndicatorTintColor = Style.Colors.green
    control.pageIndicatorTintColor = Style.Colors.grey
    control.snp.makeConstraints { (make) in
      make.centerX.equalToSuperview()
