CoreNFC IS5693 Tags

Hello, I have ICode Slix and Slix 2 NFC tags. I'm working on an iOS app for reading and writing data to these tags. I've tried various approaches, but I'm having trouble with the writing part. Could you please assist me in understanding how to write encode URL in that tags Here's my current code

Because these tag is not bydefault NDEF format and I want to right url in that tag and make it NDEF formattable.

I tried to write data with NFC Tool application it can write data easily in that but my code doesn't work.

how to right data in NFC forum type 5 tags?

func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) {

    print("Connecting To Tag")

         if tags.count > 1 {

        session.alertMessage = "More Than One Tag Detected, Please try again"

        session.invalidate()

        return

    }

    

    let tag = tags.first!
    session.connect(to: tag) { error in

        if let error = error {

            session.invalidate(errorMessage: "Connection Failed: \(error.localizedDescription)")

            return

        }

        

        if case let .iso15693(sTag) = tag {

            let textToWrite = "hello"

            

            if let textData = textToWrite.data(using: .utf8) {

                sTag.writeSingleBlock(requestFlags: [.highDataRate], blockNumber: 0x05, dataBlock: textData) { error in

                    if let error = error {

                        print("Error writing to NFC tag: \(error.localizedDescription)")

                    } else {

                        print("Data successfully written to NFC tag.")

                    }

                    session.invalidate()

                }

            } else {

                print("Error encoding text to data")

                session.invalidate()

            }

        }

    }

}

Replies

Sorry for the mistake its NFCISO15693Tag