You can use queryItems in URLComponents. When you get this propertyâs value, the NSURLComponents class parses the query string and returns an array of NSURLQueryItem objects, each of which represents a single key-value pair, in the order in which they appear in the original query string. Swift let url = "http://example.com?param1=value1¶m2=param2" let queryItems = URLComponents(string: url)?.q


{{#tags}}- {{label}}
{{/tags}}