         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) {

        fatalError("init(coder:) has not been implemented")
    }

    override func loadView() {
        super.loadView()
        print("foo")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        view.addSubview(webView)
        webView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(view)
            make.bottom.equalTo(view)
            make.trailing.equalTo(view)
            make.leading.equalTo(view)
        }
//        self.view = webView

//        webView.navigationDelegate = self
//        loadController.setupInController(self, contentView: webView)
//        view.alpha = 1.0
        view.backgroundColor = UIColor.yellowColor() //OEXStyles.sharedStyles().standardBackgroundColor()

        title = Strings.Certificates.viewCertTitle
        loadController.state = .Initial

//

import Foundation

class CertificateViewController: UIViewController, UIWebViewDelegate {

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