WWDC Notes

Core NFC Enhancements

Show Apple's description.
Learn how easy it is to add support for NFC in your app and take advantage of the newest capabilities such as NDEF writing and support for widely adopted native tag protocols.

With iOS 13 any iPhone from the iPhone 7 lineup and later can both read and write NDEF NFC Tags (NFC Data Exchange Format).

We need to declare in the entitlements which tags we want to be able to read (basically a prefix of the tag identifier).

To write NDEF tags, we use the NFCNDEFReaderSession and, after detecting the tag, we can read/write/lock it:

The sessions come with sample code to read and write NFC tags.

Missing anything? Corrections? Contributions are welcome 😃

Related

Written by

zntfdr

Federico Zanetello

Federico Zanetello is an iOS Engineer with strong passion for Swift, minimalism, and design. When he’s not busy automating things, he can be found writing at fivestars.blog and/or playing with the latest shiny toys.