title: Trouble reading eID information with NFC using iOS13
body: <p>Coming from a similar question ( <a href="https://stackoverflow.com/q/56515747">Cannot read the NFC chip of the ePassport using iOS13</a> ) I am also trying to read the information on the eID using iOS13 following the same approach as the other question, but I can't seem to get the steps after scanning the document to work. ( like using the MRZ code to create a BAC and reading the data accordingly )</p>
  
  <p>Any advice or more information? Did someone managed to get this working already? Thanks a lot!</p>
  
  <p><strong>Edit</strong>: Added current working code to improve and clarify the question.</p>
  
  <pre class="lang-swift prettyprint-override"><code>import UIKit
  import CoreNFC
  
  class ViewController: UIViewController, NFCTagReaderSessionDelegate {
  
      var readerSession: NFCTagReaderSession?
  
      func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession) {
  
      }
  
      func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Error) {
          print(error)
      }
  
      func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) {
          var ndefTag: NFCNDEFTag
  
          switch tags.first! {
              case let .iso7816(tag):
                  ndefTag = tag
              default:
                  session.invalidate(errorMessage: "Card not valid")
                  return
          }
  
          session.connect(to: tags.first!) { (error: Error?) in
              if error != nil {
                  session.invalidate(errorMessage: "Connection error. Please try again.")
                  return
              }
  
              let card: NFCISO7816Tag
              card = ndefTag as! NFCISO7816Tag
  
              print(card)
          }
      }
  
      @IBAction func nfcButton(_ sender: Any) {
          guard NFCNDEFReaderSession.readingAvailable else {
              let alertController = UIAlertController(
                  title: "Scanning Not Supported",
                  message: "This device doesn't support scanning your identity document.",
                  preferredStyle: .alert
              )
  
              alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
              self.present(alertController, animated: true, completion: nil)
              return
          }
  
          readerSession = NFCTagReaderSession(pollingOption: [.iso14443], delegate: self, queue: nil)
          readerSession?.alertMessage = "Place the device on the identity document."
          readerSession?.begin()
      }
  }
  
  
  </code></pre>