title: Swift / iOS launch Apple Pay to a particular payment pass
body: <p>Searching Apple Pay / Passkit / Wallet documentation, I've found very few code examples and pretty poor documentation. We're attempting to present a payment pass we've provisioned rather than just launch the wallet with <code>openPaymentSetup()</code>.</p>
  
  <p>According to <code>PKPassLibrary</code> docs, this can be achieved with <code>PKPassLibrary.present()</code>. We're invoking this function and it launches Apple Pay directly into the add a card wizard, which seems worse than the UX from <code>openPaymentSetup()</code>.</p>
  
  <p>The code we're using is:</p>
  
  <pre><code>    let library: PKPassLibrary = PKPassLibrary()
      let passes: [PKPass] = library.remotePaymentPasses()
      if !passes.isEmpty, #available(iOS 10.0, *) {
          library.present(passes[passes.count-1].paymentPass!)
      } else {
          library.openPaymentSetup()
      }
  </code></pre>
  
  <p>We get the pass library and our passes, then conditionally attempt to present the last pass. </p>
  
  <p>Does anyone know how to show a pass rather than launching a tutorial or add a card wizard?</p>