<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCMiFareTag",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(pl)NFCMiFareTag"
  },
  "title" : "NFCMiFareTag"
}
-->

# NFCMiFareTag

An interface for interacting with a MIFARE® tag.

```
protocol NFCMiFareTag : NFCNDEFTag, __NFCTag
```

## Overview

The [`NFCTagReaderSessionDelegate`](/documentation/CoreNFC/NFCTagReaderSessionDelegate-2joku) receives an object that conforms to the [`NFCMiFareTag`](/documentation/CoreNFC/NFCMiFareTag) protocol when the [`NFCTagReaderSession`](/documentation/CoreNFC/NFCTagReaderSession) detects a compatible tag. However, if you include the application identifier `D2760000850101`—the identifier for the NDEF application on MIFARE® DESFire® tags (NFC Forum T4T tag platform)—in the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.nfc.readersession.iso7816.select-identifiers> array of your `Info.plist` file, the reader session sends the delegate an [`NFCISO7816Tag`](/documentation/CoreNFC/NFCISO7816Tag) object when it finds a tag matching the identifier. To receive the MIFARE DESFire tag as an [`NFCMiFareTag`](/documentation/CoreNFC/NFCMiFareTag) object, don’t include `D2760000850101` in the array.

For the delegate to receive the tag object, your app must include the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.nfc.readersession.formats>.

For the reader session to read and write data to the tag, it must be available to the reader session. Use the [`isAvailable`](/documentation/CoreNFC/NFCTag-swift.enum/isAvailable) property to check the tag’s availability.

MIFARE, MIFARE DESFire, MIFARE Ultralight, and MIFARE Plus are registered trademarks of NXP B.V.

## Topics

### Getting Tag Information

[`mifareFamily`](/documentation/CoreNFC/NFCMiFareTag/mifareFamily)

The MIFARE product family identifier for the tag.

[`NFCMiFareFamily`](/documentation/CoreNFC/NFCMiFareFamily)

Identifiers for the MIFARE product families.

[`identifier`](/documentation/CoreNFC/NFCMiFareTag/identifier)

The unique hardware identifier of the tag.

[`historicalBytes`](/documentation/CoreNFC/NFCMiFareTag/historicalBytes)

The historical bytes extracted from an Answer To Select response.

### Sending Commands

[`-  sendMiFareCommand:completionHandler:`](/documentation/CoreNFC/NFCMiFareTag/sendMiFareCommand(commandPacket:completionHandler:))

Sends a native MIFARE command to the tag.

[`-  sendMiFareISO7816Command:completionHandler:`](/documentation/CoreNFC/NFCMiFareTag/sendMiFareISO7816Command(_:completionHandler:))

Sends an ISO 7816 command APDU to the tag and receives a response APDU.

## Relationships

### Inherits From

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NFCNDEFTag`](/documentation/CoreNFC/NFCNDEFTag)

[`NSCoding`](/documentation/Foundation/NSCoding)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)