---
title: "appending(queryItems:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/url/appending(queryitems:)"
---

# appending(queryItems:)

Returns a new URL formed by appending a list of query items to the URL.

## Declaration

```swift
func appending(queryItems: [URLQueryItem]) -> URL
```

## Parameters

- `queryItems`: An array of doc://com.apple.foundation/documentation/Foundation/URLQueryItem instances to append to the URL.

## See Also

### Adding query items

- [append(queryItems:)](foundation/url/append(queryitems:).md)
- [URLQueryItem](foundation/urlqueryitem.md)
