Last active
December 8, 2018 16:25
-
-
Save flexaddicted/88a019f9db0128c1e5e7cce9edfe1325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LegacyWebView: UIView, URLRequestable { | |
private var webView: UIWebView! | |
func load(urlRequest: URLRequest) { | |
webView.loadRequest(urlRequest) | |
} | |
// other code here | |
} | |
class ModernWebView: UIView, URLRequestable { | |
private var webView: WKWebView! | |
func load(urlRequest: URLRequest) { | |
webView.load(urlRequest) | |
} | |
// other code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment