Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Adds new append function to URL extension

Choose a tag to compare

@pbodsk pbodsk released this 19 Feb 15:00
· 32 commits to master since this release
1cd6200

We've added a new method in our URL extension:

append(queryParameters: [String: String])

This means that you can add query parameters to a URL as a dictionary of key value pairs like so:

let url = URL(string: "https://example.com")!
url.append(queryParameters: ["param1" : "value1, "param2" : "value2"]
//url is now: https://example.com?param1=value1&param2=value2