Instance Property
user
iOS 8.0+Deprecated
iPadOS 8.0+Deprecated
Mac Catalyst 8.0+Deprecated
macOS 10.10+Deprecated
tvOS 9.0+Deprecated
visionOS 1.0+Deprecated
watchOS 2.0+Deprecated
Deprecated
Use user(percentEncoded:) instead
The user component of the URL if the URL conforms to RFC 3986; otherwise, nil.
var user: String? { get }
Discussion
Note
This function resolves against the base URL.
New code should use user(percentEncoded:) instead of this property.