---
title: "readerSession(_:didDetect:)"
framework: corenfc
role: symbol
role_heading: Instance Method
path: "corenfc/nfcndefreadersessiondelegate/readersession(_:diddetect:)"
---

# readerSession(_:didDetect:)

Tells the delegate that the session detected NFC tags with NDEF messages and enables read-write capability for the session.

## Declaration

```swift
optional func readerSession(_ session: NFCNDEFReaderSession, didDetect tags: [any NFCNDEFTag])
```

## See Also

### Finding NDEF Messages and Tags

- [readerSession(_:didDetectNDEFs:)](corenfc/nfcndefreadersessiondelegate/readersession(_:diddetectndefs:).md)
