-
Notifications
You must be signed in to change notification settings - Fork 77
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
Feature Request #43
Comments
Hi there! Thanks for the request. We'd like to keep it as a button, but we welcome any PR 😄 |
By using the button.selected attribute, A property would check if this feature is active: Then simply add an inside target for your button for UIControlEvents.TouchUpInside) When user presses the button: func pressed() {
if button.shouldStayDown == YES {
if button.selected == YES {
//make the button go up
} else if button.selected == NO {
//make the button go down and stay down
}
button.selected = !button.selected
}
} I would add this but I haven't been writing objc for a year 😁 |
We’ll try it out once we have time 👍 |
It sounds good |
why would you want a button to stay down? just confuses the user, and makes your ui look broken... |
How about making the button work like a UISwitch?
When I press it, it stays down until I press it again?
The text was updated successfully, but these errors were encountered: