Instance MethodFoundationEssentials
appending(components:directoryHint:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Returns a URL constructed by appending the given variadic list of path components to self.
func appending<S>(components: S..., directoryHint: URL.DirectoryHint = .inferFromPath) -> URL where S : StringProtocol
Parameters
componentsThe list of components to add.
directoryHintA hint to whether this URL will point to a directory.