 //  Copyright (c) 2015 Myles Ringle & Sam Vermette. All rights reserved.
 //
 
-import UIKit
-
-public class SwiftWebVC: UIViewController, UIWebViewDelegate {
-    
-    weak var delegate: UIWebViewDelegate? = nil
+import WebKit
+
+public class SwiftWebVC: UIViewController {
+    
     var storedStatusColor: UIBarStyle?
     var buttonColor: UIColor? = nil
     var titleColor: UIColor? = nil

    }()
    
    
    lazy var webView: UIWebView = {
        var tempWebView = UIWebView(frame: UIScreen.main.bounds)
        tempWebView.delegate = self;
        tempWebView.scalesPageToFit = true;
        return tempWebView;
    }()
    

    
    func actionButtonTapped(_ sender: AnyObject) {
        
        if let url: URL = ((webView.url != nil) ? webView.url : request.url) {
            let activities: NSArray = [SwiftWebVCActivitySafari(), SwiftWebVCActivityChrome()]
            
            if url.absoluteString.hasPrefix("file:///") {
