Contents

find(_:configuration:completionHandler:)

Searches for the specified string in the web view’s content.

Declaration

@MainActor @preconcurrency func find(_ string: String, configuration: WKFindConfiguration = .init(), completionHandler: @escaping @MainActor @Sendable (WKFindResult) -> Void)

Parameters

  • string:

    The search string to use.

  • configuration:

    The search parameters. Use this object to specify whether the search is case sensitive, whether it moves forward or backward, and whether it wraps when it reaches the end of the page.

  • completionHandler:

    The completion handler to call with the results of the search. This handler has no return value and takes the following parameter:

    result

    The object that contains the results of the search.

See Also

Searching the current page’s content