I would like to open a url in browser but I get this error:
Use of unresolved identifier NSWorkspace
my code:
if let url = URL(string: "https://www.google.com"), NSWorkspace.shared().open(url) {
print("default browser was successfully opened")
}