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.