 //
 
 import UIKit
-import WebKit
 
 @objc protocol FolioPageDelegate {
     optional func pageDidLoad(page: FolioReaderPage)
 }
 
-//private let hasWebKit = NSClassFromString("WKWebView") != nil
-private let hasWebKit = false
-
-class FolioReaderPage: UICollectionViewCell, WKNavigationDelegate, UIWebViewDelegate {
+class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate {
     
-    var webView: AnyObject!
+    var webView: UIWebView!
     var delegate: FolioPageDelegate!
+    
+    // MARK: - View life cicle
     
     override init(frame: CGRect) {
         super.init(frame: frame)
-        
         self.backgroundColor = UIColor.whiteColor()
         
         if webView == nil {
-            if hasWebKit {
-                let config = WKWebViewConfiguration()
-                webView = WKWebView(frame: self.bounds, configuration: config)
-            } else {
-                webView = UIWebView(frame: self.bounds)
-            }
+            webView = UIWebView(frame: self.bounds)
         }
         
-        if hasWebKit {
-            let wkWebView = (webView as! WKWebView)
-            wkWebView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
-            wkWebView.navigationDelegate = self
-            wkWebView.backgroundColor = UIColor.whiteColor()
-            self.addSubview(wkWebView)
-        }
-        else {
-            let uiWebView = (webView as! UIWebView)
-            uiWebView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
-            uiWebView.delegate = self
-            uiWebView.backgroundColor = UIColor.whiteColor()
-            self.addSubview(uiWebView)
-        }
+        webView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
+        webView.delegate = self
+        webView.backgroundColor = UIColor.whiteColor()
+        self.addSubview(webView)
     }
 
     required init(coder aDecoder: NSCoder) {

        
        delegate.pageDidLoad!(self)
    }
    
}

    }
    
    func loadHTMLString(string: String) {
        webView.alpha = 0
        webView.loadHTMLString(string, baseURL: nil)
    }
    
    // MARK: - UIWebView Delegate
