title: How to pass and get multiple URLQueryItems in Swift?
body: <p>Ok, I am working in an iMessage app and am trying to parse more than 1 url query item from the selected message here- I have been successful getting/sending just 1 value in a query:</p>
  
  <pre><code>override func willBecomeActive(with conversation: MSConversation) {
          // Called when the extension is about to move from the inactive to active state.
          // This will happen when the extension is about to present UI.
  
          if(conversation.selectedMessage?.url != nil) //trying to catch error
          {
              let components = URLComponents(string: (conversation.selectedMessage?.url?.query?.description)!)
  
              //let val = conversation.selectedMessage?.url?.query?.description
              if let queryItems = components?.queryItems {
                  // process the query items here...
                  let param1 = queryItems.filter({$0.name == "theirScore"}).first
                  print("***************=&gt;    GOT IT ",param1?.value)
              }
          }
  </code></pre>
  
  <p>When I just have 1 value, just by printing <code>conversation.selectedMessage?.url?.query?.description</code> I get an optional with that 1 value, which is good. But with multiple I cant find a clean way to get specific values by key. </p>
  
  <p>What is the correct way to parse a <code>URLQueryItem</code> for given keys for iMessage?</p>