Contents

getHighlightFor(_:completionHandler:)

Returns a highlight for a specified URL.

Declaration

func getHighlightFor(_ URL: URL, completionHandler: @escaping  @Sendable (SWHighlight?, (any Error)?) -> Void)
func highlight(for URL: URL) async throws -> SWHighlight

Parameters

  • URL:

    The URL that the system uses to find the Swhighlight.

  • completionHandler:

    Returns the Swhighlight. The system invokes the completion handler on the main thread.

See Also

Retrieving collaboration highlights