
Core Nfc
If you're building iOS apps that need to scan NFC tags, this covers the CoreNFC framework from basic NDEF reads to tag-specific protocols like ISO7816 and MIFARE. You'll find working examples for both simple use cases (reading a URL from a tag) and advanced scenarios (writing NDEF messages, handling background tag reading). The setup section walks through the entitlements and Info.plist configuration that always trips people up on first implementation. Targets Swift 6.3 and iOS 26+, which is forward-looking but the patterns hold for earlier versions. The code samples show proper session lifecycle management and error handling, which matters because NFC sessions fail in weird ways if you don't invalidate them correctly.
- skills.sh installs
- 3.8K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill core-nfc --agent claude-codeInstalls into .claude/skills of the current project.
Files
CoreNFC
Read and write NFC tags on iPhone using the CoreNFC framework. Covers NDEF reader sessions, tag reader sessions, NDEF message construction, entitlements, and background tag reading.
Contents
- Setup
- NDEF Reader Session
- Tag Reader Session
- Writing NDEF Messages
- NDEF Payload Types
- Background Tag Reading
- Common Mistakes
- Review Checklist
- References
Setup
Project Configuration
- Add the Near Field Communication Tag Reading capability in Xcode
- Add
NFCReaderUsageDescriptionto Info.plist with a user-facing reason string - Add the
com.apple.developer.nfc.readersession.formatsentitlement with the currentTAGvalue; do not add legacyNDEF - For ISO 7816 tags, add supported application identifiers to
com.apple.developer.nfc.readersession.iso7816.select-identifiersin Info.plist - For FeliCa tags, add supported system codes to
com.apple.developer.nfc.readersession.felica.systemcodes; do not use wildcard system codes
Device Requirements
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Documentation, Release Management, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K
- Cloudkit3.5K
- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K
- Realitykit3.4K
- Avkit3.4K
- Spritekit3.3K
- Cryptokit3.3K
- Metrickit3.3K
- Pdfkit3.3K
- Gamekit3.3K
- Eventkit3.3K
- Musickit3.3K
- Swift Architecture3.3K
- Pencilkit3.3K
- Carplay3.2K