MatchURL
public class MatchURL : URLMatching
A class that implements URL matching based on a specified pattern URL.
-
Initializes a new instance of
MatchURL
with a specific pattern URL.Declaration
Swift
public init(patternURL: URL)
Parameters
patternURL
The URL pattern to match against.
-
Determines if the provided URL matches the pattern URL.
Declaration
Swift
public func matches(_ url: URL) -> Bool
Parameters
url
The URL to be evaluated.
Return Value
A Boolean value indicating whether the URL matches the pattern.