Instance Property


The data representation of the URL’s relativeString.


var dataRepresentation: Data { get }


If the URL was initialized with init?(dataRepresentation:relativeTo:isAbsolute:), the data representation returned are the same bytes as those used at initialization; otherwise, the data representation returned are the bytes of the relativeString encoded with UTF8 string encoding.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software