Skip to content

Instance Property

password

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 password(percentEncoded:) instead

The password component of the URL if the URL conforms to RFC 3986; otherwise, nil.
var password: String? { get }

Discussion

Note

This function resolves against the base URL.

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