URLMatchable

public protocol URLMatchable

Conforming types define a predicate capable of matching a given URL (or not).

  • A predicate that determines whether a conforming type matches the given URL.

    Declaration

    Swift

    func matches(url: URL) -> Bool

    Parameters

    url

    The URL to be matched.

    Return Value

    true if the conforming type matches the given URL. Otherwise, false.