Created
October 21, 2019 07:46
-
-
Save nolvuscodes/e34dfa2625ee5c6ced128666d3c4a784 to your computer and use it in GitHub Desktop.
A WebKit Swift App looks like and is an example for the latest XCODE 10.5
This file contains 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
// | |
// ViewController.swift | |
// GoogleMe | |
// | |
// Created by Nanobug on 10/20/19. | |
// Copyright © 2019 Westgate Studio. All rights reserved. | |
// | |
// | |
// ViewController.swift | |
// GoogleMe | |
// | |
// Created by Michael Moore on 10/19/19. | |
// Copyright © 2019 Westgate Studio. All rights reserved. | |
// | |
import Cocoa | |
import WebKit | |
class ViewController: NSViewController { | |
@IBOutlet weak var webView:WKWebView? | |
override func viewDidLoad() | |
{ | |
super.viewDidLoad() | |
let request = URLRequest(url: URL(string: "https://google.me")!) | |
webView?.load(request) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment