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

Not able to get tag for Decrement Button. #26

Closed
dhavalbarot opened this issue Aug 10, 2018 · 3 comments
Closed

Not able to get tag for Decrement Button. #26

dhavalbarot opened this issue Aug 10, 2018 · 3 comments

Comments

@dhavalbarot
Copy link

/// - 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
}

@BalestraPatrick
Copy link
Owner

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?

@Dave181295
Copy link

how can we get notified if it was increment or decrement ?

@Dave181295
Copy link

he's right, both the decrement and increment button has the same tag == 0

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

No branches or pull requests

3 participants