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