(Swift, macOS, storyboard)
I just try to display a web site inside the app. But I see nothing. It fails silently
import Cocoa
import WebKit
class ViewController: NSViewController {
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "https://www.apple.com")
let request = URLRequest(url:url!)
webView.load(request)
}
}
There is a similar question here:
https://forums.developer.apple.com/thread/92265
It talks about the sandbox but I do not understand what I have to do. What I have to select and why?
Thank you
I checked again, on different machines, and it works with OSX 10.14.6.
So, may be a bug in 10.15. You should file a bug report.
Reported here as well: