Instance Method

appendingPathComponent(_:)

Returns a URL constructed by appending the given path component to self.

Declaration

func appendingPathComponent(_ pathComponent: String) -> URL

Parameters

pathComponent

The path component to add.

Discussion

See Also

Adding Path Components

func appendPathComponent(String)

Appends a path component to the URL.

func appendPathComponent(String, isDirectory: Bool)

Appends a path component to the URL.

func appendingPathComponent(String, isDirectory: Bool) -> URL

Returns a URL constructed by appending the given path component to self.

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