title: Send Text and Link to Snapchat from my Swift app without the SDK
body: <p>I am integrating sharing options from my app to Snapchat.
  I have a dynamic URL obtained in an object and clicking the Snapchat's share button directly opens the app if Snapchat is there on the device and show the text with the link. I am using the below code to share which gives an error on Snapchat. Below is my Code. </p>
  
  <pre><code>func shareTextOnSnapchat(obj:VideoData) {
      let shaUrl = URL(string: obj.share_url ?? "")
      if let myURL:URL = shaUrl{
          let promoText = "Check out this great new video from \(obj.name ?? ""), I found on talent app"
          let shareString = "snapchat://text=\(promoText)&amp;url=\(myURL)"
          let escapedShareString = shareString.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed)!
          let url = URL(string: escapedShareString)
          UIApplication.shared.openURL(url!)
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ARRXn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ARRXn.png" alt="enter image description here"></a></p>