{"id":15050844,"url":"https://github.com/jvk75/nfcndefparse","last_synced_at":"2025-04-10T02:20:07.755Z","repository":{"id":62448393,"uuid":"106328788","full_name":"jvk75/NFCNDEFParse","owner":"jvk75","description":"NFC Forum Well Known Type Data Parser for iOS11 and Core NFC","archived":false,"fork":false,"pushed_at":"2017-10-15T10:38:23.000Z","size":63,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:44:16.883Z","etag":null,"topics":["cocoapods","corenfc","data-parser","ios","ios11","ndef","ndef-format","nfc","nfc-forum","nfc-reader","objective-c","swift","uri"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jvk75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-09T19:55:07.000Z","updated_at":"2023-09-06T23:01:50.000Z","dependencies_parsed_at":"2022-11-01T22:31:25.526Z","dependency_job_id":null,"html_url":"https://github.com/jvk75/NFCNDEFParse","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvk75%2FNFCNDEFParse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvk75%2FNFCNDEFParse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvk75%2FNFCNDEFParse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvk75%2FNFCNDEFParse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jvk75","download_url":"https://codeload.github.com/jvk75/NFCNDEFParse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142981,"owners_count":21054685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","corenfc","data-parser","ios","ios11","ndef","ndef-format","nfc","nfc-forum","nfc-reader","objective-c","swift","uri"],"created_at":"2024-09-24T21:29:30.232Z","updated_at":"2025-04-10T02:20:07.720Z","avatar_url":"https://github.com/jvk75.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFCNDEFParse\n\nNFC Forum Well Known Type Data Parser for iOS11 and Core NFC.\n\nSupports parsing of types:\n\nText - NFCForum-TS-RTD_Text_1.0 2006-07-24\n\nUri - NFCForum-TS-RTD_URI_1.0 2006-07-24\n\nSmart Poster - NFCForum-SmartPoster_RTD_1.0 2006-07-24 (title, uri, action, size)\n\n## Requirements\n\nCore NFC requires iOS11 (and Xcode 9)\n\n## Installation\n\nNFCNDEFParse is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```\npod 'NFCNDEFParse'\n```\n\n## Usage\n\n**Note: For non CocoaPods usage and more details see Examples!**\n\n### Import the library.\n\nSwift:\n\n```\nimport NFCNDEFParse\n```\n\nObjective-C:\n\n```\n@import NFCNDEFParse;\n```\n\n### Create array for the messages\n\n```\nvar data: [NDEFMessageWithWellKnownTypes] = []\n```\n\n### In CoreNFC callback create the \"well know types\" data array.\n\n```\nfunc readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) {\n    data = messages.flatMap({ NDEFMessageWithWellKnownTypes(records: $0.records) })\n}\n```\n\n### Loop through the data array to print out the values.\n\n```\ndata.forEach({ message in\n    print(\"message: \")\n    message.records.forEach({ record in\n        print(record.description)\n    })\n})\n\n```\n\n## Author\n\nJari Kalinainen, jari@klubitii.com\n\n## License\n\nNFCNDEFParse is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvk75%2Fnfcndefparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjvk75%2Fnfcndefparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvk75%2Fnfcndefparse/lists"}