URLMatching

public protocol URLMatching

A protocol defining a method to determine if a URL matches certain criteria.

  • Determines if the provided URL matches the expected criteria.

    Declaration

    Swift

    func matches(_ url: URL) -> Bool

    Parameters

    url

    The URL to be evaluated.

    Return Value

    A Boolean value indicating whether the URL matches the criteria.