         if let request = self.request {
             webView.loadRequest(request)
         }
-    }
-
-    override func viewDidAppear(animated: Bool) {
-        super.viewDidAppear(animated)
-
-//        if let request = self.request {
-//            print(request)
-//            print(webView)
-//            let r = NSURLRequest(URL: NSURL(string: "http://www.edx.org")!)
-//            webView.loadRequest(r)
-////            if let n = webView.loadRequest(r) {
-////                print(n)
-////            }
-//
-//        }
     }
 
     override func viewWillDisappear(animated: Bool) {


    // MARK: - Web view delegate

    func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
        loadController.state = .Loaded
    }

    func webView(webView: WKWebView, didFailNavigation navigation: WKNavigation!, withError error: NSError) {
        loadController.state = LoadState.failed(error)
    }

    func webView(webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: NSError) {
        loadController.state = LoadState.failed(error)
    }

}
//

import Foundation

class CertificateViewController: UIViewController, UIWebViewDelegate {

    typealias Environment = protocol<OEXAnalyticsProvider>
    private let environment: Environment
