Skip to content

Instantly share code, notes, and snippets.

@nolvuscodes
Created October 21, 2019 07:46
Show Gist options
  • Save nolvuscodes/e34dfa2625ee5c6ced128666d3c4a784 to your computer and use it in GitHub Desktop.
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
//
// 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