Instance Property
fragment
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 fragment(percentEncoded:) instead
The fragment component of the URL if the URL conforms to RFC 3986; otherwise, nil.
var fragment: String? { get }
Discussion
Note
This function resolves against the base URL.
New code should use fragment(percentEncoded:) instead of this property.