I have an app that has a browser window attached to it. The following code was working:
I opened a project using it this yesterday, and it builds correctly but does not load the page. The same code works fine if used in an iOS app, but not macOS.
This code was working a month ago with no issues in macOS. I can't find any references to changes in the Xcode, Swift, or WebKit release notes.
Does anyone know why this is no longer working?
Code:
let webAddy = URL(string: "https://www.google.com/")
let myRequest = URLRequest(url: webAddy!)
myWebView.load(myRequest)
I opened a project using it this yesterday, and it builds correctly but does not load the page. The same code works fine if used in an iOS app, but not macOS.
This code was working a month ago with no issues in macOS. I can't find any references to changes in the Xcode, Swift, or WebKit release notes.
Does anyone know why this is no longer working?