URLCondition
public struct URLCondition : Condition
The URLCondition checks a string for a valid URL.
Note
The scheme (protocol) is needed for a valid URL. If you want a check for shorthand URLs seeURLShorthandCondition. Only HTTP and HTTPS schemes are considered valid.
-
Declaration
Swift
public var localizedViolationString: String -
Declaration
Swift
public let regex: String -
Declaration
Swift
public var shouldAllowViolation: Bool
-
Declaration
Swift
public init()
View on GitHub
URLCondition Structure Reference