Check Mobile App
Read now
Start a Project

How to Make Query in URL using swift 3


Query in URL

Some times we need to find the some data or get the specific key data from URL  for that we need to break the whole strings in “&” and we have to store data as  array in variable and after that we have to make search so doing this , is taking more time and more complexity , so doing in best way .

Follow Some Steps:

1: Let the URL is

2:” URLComponents ” method provides the better way to handle the  query on URL .

3: Here the params are “test1”, “test2” etc.


5: Here queryItems contains all params data So  we are doing the query on this params like “test1” 

it will provide the respected value “blah” .

6: Now we can make any query on params.




. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.


When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

Michael Urresta

Michael Urresta

Talk to Sales


Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home