Contents

rangeOfPort

Returns the character range of the port in the string returned by the string property.

Declaration

var rangeOfPort: Range<String.Index>? { get }

Discussion

If the component does not exist, nil is returned.

See Also

Locating components in the URL string representation