We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've read previous questions but I didn't quite understand how to get the string value. I tried the following but it returns an empty string:
cell.labelsField.onDidAddTag = { [weak self] _, _ in if let label = cell.labelsField.text { print(label) self?.labels.append(label) } }
I want to able to get each value the user enters and then add it to an array. How can I do that?
The text was updated successfully, but these errors were encountered:
@boldlion If you need an array of String then you can do tagsField.tags.map({$0.text}).
tagsField.tags.map({$0.text})
Even so, you can have access the value using the tag attribute sent to onDidAddTag:
tag
onDidAddTag
cell.labelsField.onDidAddTag = { [weak self] field, tag in self?.labels.append(tag.text) }
Sorry, something went wrong.
No branches or pull requests
I've read previous questions but I didn't quite understand how to get the string value. I tried the following but it returns an empty string:
I want to able to get each value the user enters and then add it to an array. How can I do that?
The text was updated successfully, but these errors were encountered: