title: Get value of parameters in deep link url iOS
body: <p>everyone.
  My question is: How can I get data from deep link URL?
  I have two apps and I want to send data from app1 to app2 using the deep link.
  I have a button on app1 to click and open app2 then app 2 will get data from app1 by deep link URL.</p>
  
  <p>Here is my code of button send in app1:</p>
  
  <pre><code>@IBAction func btnSend_Clicked(_ sender: Any) {
      let text = self.txtInput.text?.replacingOccurrences(of: " ", with: "%20")
      UIApplication.shared.open(URL(string: "myapp://?code=\(text!)")!, options: [:], completionHandler: nil)
  }
  </code></pre>
  
  <p>so, How can i get data from deeplink url (code parameter) in app2?</p>
  
  <p>Really Thanks for your help !!!!</p>