I am trying to open a url in Safari even if my default browser is set to Google Chrome. How do I do that? I am using the following code, but it opens the url in the default browser only.
let requiredURL = URL(string: "https://www.google.com)")!
NSWorkspace.shared.open(requiredURL)
Do I have to use the following function:
NSWorkspace.shared.open(urls: [URL], withApplicationAt: URL, options: NSWorkspace.LaunchOptions, configuration: [NSWorkspace.LaunchConfigurationKey : Any])
If so, how do I implement it?