Contents

user

The user component of the URL if the URL conforms to RFC 3986; otherwise, nil.

Declaration

var user: String? { get }

Discussion

New code should use user(percentEncoded:) instead of this property.

See Also

Accessing the parts of a URL