URL

public struct URL: CustomStringConvertible

Encapsulates the components of an URL.

  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • The host URL subcomponent (e.g. domain name, IP address)

    Declaration

    Swift

    public var host: String?
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • The fragment URL component (the part after a # symbol)

    Declaration

    Swift

    public var fragment: String?
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible
  • Creates an instance from the string. String must be a valid URL.

    Declaration

    Swift

    public init?(stringValue: String)
  • Whether the URL components form a valid URL

    Declaration

    Swift

    public var valid: Bool
  • Returns a valid URL string or nil

    Declaration

    Swift

    public var URLString: String?
  • Undocumented

    Declaration

    Swift

    public struct URL: CustomStringConvertible