         }
 
         self.dataSource = self
+        self.delegate = self
 
         if traitCollection.forceTouchCapability == .Available {
             registerForPreviewingWithDelegate(self, sourceView: view)

        super.viewDidLoad()

        currentOption = .MeetGenius

        segmentedControl.selectedSegmentIndex = currentOption.rawValue

        segmentedControl.rx_value

    }
}

// MARK: - UIPageViewControllerDelegate

extension DiscoverContainerViewController: UIPageViewControllerDelegate {

    func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {

        guard completed else {
            return
        }

        if previousViewControllers.first == meetGeniusViewController {
            currentOption = .FindAll
        } else if previousViewControllers.first == discoverViewController {
            currentOption = .MeetGenius
        }
        segmentedControl.selectedSegmentIndex = currentOption.rawValue
    }
}


// MARK: - UIViewControllerPreviewingDelegate

extension DiscoverContainerViewController: UIViewControllerPreviewingDelegate {
