Instance Property

fragment

The fragment identifier, conforming to RFC 1808. (read-only)

Declaration

var fragment: String? { get }

Discussion

This property contains the URL’s fragment. Any percent-encoded characters are not unescaped. If the receiver does not conform to RFC 1808, this property contains nil. For example, in the URL http://www.example.com/index.html#jumpLocation, the fragment identifier is jumpLocation.