core-nfc
CoreNFC (iOS / iPadOS)
Detect, read, and write NFC tags on iPhone (7 and later; background reading iPhone XS
and later). Two session types, both built on NFCReaderSession:
-
NFCNDEFReaderSession— high-level NDEF read/write. Use for NFC Forum Type 1–5 tags carrying URLs, text, vCards. Simplest path. -
NFCTagReaderSession— low-level access to.iso7816,.iso15693,.feliCa,.miFaretags for raw commands/APDUs (transit, access cards, custom protocols). -
Not CoreNFC: Apple Pay / Wallet passes are on the Secure Element and unreadable by third-party apps — see
passkit. Host Card Emulation is a separate entitlement +CardSessionAPI, out of scope here. -
KMP: CoreNFC is iOS-only; expose a
commonMaininterface and bind a Swiftactual(seeexpect-actual,kmp-ios-integration). Keep tag payloads/secrets off shared plaintext — route sensitive material throughswift-security.