Group Group Group Group Group Group Group Group Group

Reload browser with Swift

(macOS and Swift)

I have created a new window with a browser. (outside my app)

@IBAction func txt(_ sender: NSButton) {
    NSWorkspace.shared.open(URL(fileURLWithPath: "/Applications/Google Chrome.app"))
}

Is there any way I can give it an address and reload the browser?

(I am quite new. I am just learning)

@narcis Do you still have issues with this?

@shogunkaramazov Yes, I am still with this project. I could do it with AppleScript but it has limitations. I would prefer Swift

This topic was automatically closed after 166 days. New replies are no longer allowed.