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 change neubutton style when button clicked #8

Open
djkaran opened this issue Feb 17, 2021 · 3 comments
Open

Not able to change neubutton style when button clicked #8

djkaran opened this issue Feb 17, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@djkaran
Copy link

djkaran commented Feb 17, 2021

I want to change the button style from elevatedFlatRound to elevatedSoft on button click while running the code.

Find below code for reference :

@IBAction func button1Tapped(_ sender: UIButton) {
    
    if sender.isSelected
    {
        button1.applyNeuBtnStyle(type: .elevatedFlatRound, title: "Button 1", image: UIImage(systemName: "plus"), imageTintColor: .white, imageDimension: 24, hideBasePit: false, hideImagePit: false)
        sender.isSelected = false
    }
    else
    {
        button1.applyNeuBtnStyle(type: . elevatedSoft, title: "Button 1", image: UIImage(systemName: "plus"), imageTintColor: .white, imageDimension: 24, hideBasePit: false, hideImagePit: false)
        sender.isSelected = true
    }
    
}
@prashantshrivastava-cred
Copy link
Contributor

Currently, there is no support for changing button style once it's set. This is in our pipeline as enhancement

@prashantshrivastava-cred prashantshrivastava-cred added the enhancement New feature or request label Feb 18, 2021
@djkaran
Copy link
Author

djkaran commented Feb 20, 2021

Is there any way to remove previous applied style layers and apply new. Or any way to keep highlighted button style once its selected.

@prashantshrivastava-cred
Copy link
Contributor

there is no functionality as of now to remove current applied style. Will add this as an enhancement in future releases.

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

No branches or pull requests

2 participants