Contents

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 http or https.

  • completionHandler:

    A block to call when the URL is loaded in a new window.

Discussion

See Also

Working with Windows