title: Swift - How to share app link as in the App Store
body: <p>I'm trying to share my app using <code>UIActivityViewController</code> but I can't reproduce the same effect as when I share an app from the App Store, meaning :</p>
  
  <p>When I clicked the share button in the App Store I have something that looks like this :</p>
  
  <p><a href="https://i.stack.imgur.com/y9q0Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/y9q0Y.png" alt="enter image description here"></a></p>
  
  <p>But when I try to share my app I have this :</p>
  
  <p><a href="https://i.stack.imgur.com/9qLfP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9qLfP.png" alt="enter image description here"></a></p>
  
  <p>The code that I used was : </p>
  
  <pre><code>if let logo = UIImage(named: "myLogo"), let websiteURL = URL(string: "https://itunes.apple.com/app/idxxxxxxxxxx") {
     let objectsToShare = ["My App Name", websiteURL, logo] as [Any]
     let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: [])
     if let popoverController = activityVC.popoverPresentationController {
        popoverController.sourceView = self.view
        popoverController.permittedArrowDirections = UIPopoverArrowDirection(rawValue: 0)
     }
     present(activityVC, animated: true)
  }
  </code></pre>
  
  <p>The <code>if let popoverController = ...</code> loop is for preventing a crash when using iPads.</p>
  
  <p>What do I have to change in order to have the effect as the App Store? (to have an image with a title and a subtitle)</p>
  
  <p>Moreover, once I share the app with <code>Messages</code> for instance, this is the difference :</p>
  
  <p><a href="https://i.stack.imgur.com/ZmVnE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZmVnE.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/t0BjP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/t0BjP.png" alt="enter image description here"></a></p>
  
  <p>How can I have the same effect? (A single image with the title and subtitle, an as a bonus, a video). I'm not sure if this is an iOS 13 problem, since all similar questions don't have the same app sharing popover.</p>