Instance Method

deletePathExtension()

Returns a URL constructed by removing any path extension.

Declaration

mutating func deletePathExtension()

Discussion

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

See Also

Removing a Path Extension

func deletingPathExtension() -> URL

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