Core NFC requires iOS11
NFCNDEFParse is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NFCNDEFParse'
func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) {
for message in messages {
let data = NDEFMessageWithWellKnownTypes(records: message.records)
}
}
Jari Kalinainen, jari@klubitii.com
NFCNDEFParse is available under the MIT license. See the LICENSE file for more info.