Instance Method

deletingPathExtension()

Returns a URL constructed by removing any path extension.

Declaration

func deletingPathExtension() -> URL

Discussion

If the URL has an empty path (e.g., http://www.example.com), then this function will return the URL unchanged.

See Also

Removing a Path Extension

func deletePathExtension()

Returns a URL constructed by removing any path extension.

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