openWindow(with:completionHandler:)
Opens a new window with the desired webpage.
Declaration
class func openWindow(with url: URL, completionHandler: (@Sendable (SFSafariWindow?) -> Void)? = nil)class func openWindow(with url: URL) async -> SFSafariWindow?Parameters
- url:
The URL to navigate to. The URL scheme must be
httporhttps. - completionHandler:
A block to call when the URL is loaded in a new window.