Contents

init(dataRepresentation:relativeTo:)

Initializes a newly created NSURL using the contents of the given data, relative to a base URL.

Declaration

init(dataRepresentation data: Data, relativeTo baseURL: URL?)

Discussion

If the data representation is not a legal URL string as ASCII bytes, the URL object may not behave as expected.

See Also

Creating a URL object