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
/// - decrease: decrease button has tag 0. /// - increase: increase button has tag 1. private enum Button: Int { case decrease case increase }
You can not set the tag value of an element to 0. Need to modify that logic in order to get elements by tag value correctly.
/// - decrease: decrease button has tag 1. /// - increase: increase button has tag 2. private enum Button: Int { case decrease = 1 case increase = 2 }
The text was updated successfully, but these errors were encountered:
Hey @dhavalbarot, I don't seem to understand the problem exactly here? Can you please show a more meaningful example and/or share an example project?
Sorry, something went wrong.
how can we get notified if it was increment or decrement ?
he's right, both the decrement and increment button has the same tag == 0
No branches or pull requests
/// - decrease: decrease button has tag 0.
/// - increase: increase button has tag 1.
private enum Button: Int {
case decrease
case increase
}
You can not set the tag value of an element to 0. Need to modify that logic in order to get elements by tag value correctly.
/// - decrease: decrease button has tag 1.
/// - increase: increase button has tag 2.
private enum Button: Int {
case decrease = 1
case increase = 2
}
The text was updated successfully, but these errors were encountered: