Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ViewController: UIViewController {
- @IBOutlet weak var WebView: WKWebView!
- override func viewDidLoad() {
- super.viewDidLoad()
- if(CheckInternet.Connection()){
- let url = URL(string: "https://google.com")
- let request = URLRequest(url:url!)
- WebView.load(request)
- }else{
- //caso n tenha conexão com a internet
- }
- }
- }
Add Comment
Please, Sign In to add comment