VersionMatcher
public class VersionMatcher : NSObject
Version matcher.
-
The original versionConstraint used to create this matcher
Declaration
Swift
public let versionConstraint: String
-
Create a matcher for the supplied version constraint
Declaration
Swift
public class func matcher(versionConstraint: String) -> VersionMatcher?
Parameters
versionConstraint
constraint that matches one of our supported patterns
Return Value
matcher or nil if versionConstraint does not match any of the expected patterns
-
Evaluates the object with the matcher.
Declaration
Swift
public func evaluate(_ value: Any?) -> Bool
Parameters
value
The object to evaluate.
Return Value
true if the matcher matches the object, otherwise false.