How to read and write NFC tags with swiftui

Specifically, I’m having trouble writing custom data to a tag, and attaching a an action that adds that tags information to an array once read, to be displayed in a ForEach and then stored in CoreData