         super.viewDidLoad()
 
         self.scrollView = self.viewModel.initMainScrollViewInView(view)
+        self.scrollView.delegate = self
 
         for index in 0...2 {
             self.arrayWithControllers.addObject(NSNull())

        }
    }

    // MARK: Helper methods

    func loadViewController(viewController: UIViewController, page: Int) {

import UIKit

class RGMainViewController: UIViewController, UIScrollViewDelegate {
    
    let viewModel = ViewModel()
    var scrollView = UIScrollView()
