 
         view.scrollView.scrollEnabled = false
         view.scrollView.contentInset.bottom = GeniusInterviewViewController.actionViewHeight
-        //view.scrollView.delegate = self
-
         view.scrollView.rx_contentOffset.map({ $0.y }).subscribeNext({ [weak self] (scrollViewContentOffsetY) in
-            guard scrollViewContentOffsetY > 0 else {
-                return
-            }
-            guard let scrollView = self?.webView.scrollView else {
+            guard scrollViewContentOffsetY > 0, let scrollView = self?.webView.scrollView else {
                 return
             }
             let scrollViewHeight = scrollView.bounds.height

    }
}

// MARK: - UIScrollViewDelegate

//extension GeniusInterviewViewController: UIScrollViewDelegate {
//
//    func scrollViewDidScroll(scrollView: UIScrollView) {
//
//        let scrollViewContentOffsetY = scrollView.contentOffset.y
//        guard scrollViewContentOffsetY > 0 else {
//            return
//        }
//        let scrollViewHeight = scrollView.bounds.height
//        let scrollViewContentSizeHeight = scrollView.contentSize.height
//
//        let y = (scrollViewContentOffsetY + scrollViewHeight) - scrollViewContentSizeHeight
//        if y > 0 {
//            let actionViewHeight = GeniusInterviewViewController.actionViewHeight
//            UIView.animateWithDuration(0.5, animations: { [weak self] in
//                self?.actionViewTopConstraint?.constant = -actionViewHeight
//                self?.view.layoutIfNeeded()
//            })
//        } else {
//            UIView.animateWithDuration(0.5, animations: { [weak self] in
//                self?.actionViewTopConstraint?.constant = 0
//                self?.view.layoutIfNeeded()
//            })
//        }
//    }
//}



class GeniusInterviewViewController: UIViewController {

    var interview: InterviewRepresentation!

    private static let actionViewHeight: CGFloat = 50

    private lazy var disposeBag = DisposeBag()

    lazy var webView: WKWebView = {

