fragment
The fragment URL component (the part after a # symbol), or nil if not present.
Declaration
var fragment: String? { get set }Discussion
For example, in the URL http://www.example.com/index.html#jumpLocation, the fragment is jumpLocation.