NFCReaderWriter
NFCReaderWriter which supports to read data from NFC chips(iOS 11), write data to NFC chips(iOS 13) and read NFC tags infos(iOS 13) by iOS devices. Compatible with both Swift and Objective-C.
Installation
CocoaPods
Carthage
Swift Package Manager
- iOS: Open Xcode, File->Swift Packages, search input https://github.com/janlionly/NFCReaderWriter.git, and then select Version Up to Next Major 1.1.0 < .
- Or add dependencies in your
Package.swift
:
Usage
-
Set your provisioning profile to support for Near Field Communication Tag Reading;
-
Open your project target, on Signing & Capabilities tab, add the Capability of Near Field Communication Tag Reading;
-
Remember to add NFCReaderUsageDescription key for descriptions to your Info.plist.
-
Support for read tag identifier(iOS 13), you should add your NFC tag type descriptions to your Info.plist.
(eg: like com.apple.developer.nfc.readersession.felica.systemcodes, com.apple.developer.nfc.readersession.iso7816.select-identifiers)
More information please run demo above.
Requirements
- iOS 11.0+
- Swift 4.2 to 5.2