Password protect NFC tag in Swift

I am developing an ios nfc app in SwiftUI. I want users to be able to set a password for their nfc tag. In the app "NFC Tools" this is already possible. I am using the NTAG216 chip.
Does anyone know how to implement this in my app?
Password protect NFC tag in Swift
 
 
Q