Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made start and end message directly changed from write func #2

Closed
wants to merge 1 commit into from
Closed

Made start and end message directly changed from write func #2

wants to merge 1 commit into from

Conversation

Marcus1YouTube
Copy link

Please review my code for bugs (if there is any). Thanks!

@1998code
Copy link
Owner

Hello @Marcus1YouTube,

Thanks for your pull request.
Are you looking to overwrite the startAlert / endAlert?

If yes, you can simply apply this code snippet:

// MARK: - Sample I/O Functions
func read() {
    NFCR.startAlert = "Hello! Please hold your iPhone near the tag."
    NFCR.endAlert = "Thank you."
    NFCR.read()
}
func write() {
    NFCW.startAlert = "Hello! Please hold your iPhone near the tag."
    NFCW.endAlert = "Thank you."
    NFCW.msg = NFCR.msg
    NFCW.write()
}

Hope it solves your question :)

@Marcus1YouTube
Copy link
Author

Oh, sorry. That didn't come to mind. Thanks!

@1998code
Copy link
Owner

That's fine 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants