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 see URLShorthandCondition. Only HTTP and HTTPS schemes are considered valid.
  • Declaration

    Swift

    public init()