title: Scan Credit Card library on Swift 5
body: <p>I want to scan a credit card on an iOS app.
  I used CardIO Framework but it is not working on ios13</p>
  
  <pre><code>guard let cardIOVC = CardIOPaymentViewController(paymentDelegate: self) else { 
              print("This device is incompatible with CardIO")
              return
          }
  
          cardIOVC.collectCVV = false
          cardIOVC.modalPresentationStyle = .overCurrentContext
          present(cardIOVC, animated: true, completion: nil)
  </code></pre>
  
  <p>So I was wondering what the best way to implement CardIO without displaying the built-in preloaded view when cardInfo is provided.</p>
  
  <pre><code>guard let cardIOVC = ScanViewController.createViewController(withDelegate: self) else {
          print("This device is incompatible with CardScan")
          return
      }
      cardIOVC.allowSkip = true
      present(cardIOVC, animated: true, completion: nil)
  </code></pre>
  
  <p>thus cardScan Library but neither the expiryDate nor name card Holder is returned.
  I'm not really sure if the chunk of code I developed misses Something to configure the creditInfo callback.</p>
  
  <p>I also tested the DyScan Framework as an update of CardIO API however there no podSpec available:<a href="https://docs.dyneti.com/ios-integration-guide#importing-dyscan" rel="nofollow noreferrer">DyscanIntegrationGuide</a></p>
  
  <p>Does iOS provide any public API for developers to scan credit cards ? Or is there any better solutions ? </p>