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

Unable to change done button text #2046

Closed
asadkazmi-mset opened this issue May 9, 2024 · 1 comment
Closed

Unable to change done button text #2046

asadkazmi-mset opened this issue May 9, 2024 · 1 comment

Comments

@asadkazmi-mset
Copy link

Describe the bug
I was using an older version of "IQKeyboardManagerSwift" by Cocoa Pods, now I installed v7.0.3 of IQKeyboardManagerSwift using swift package manager, but I'm unable to change the name of the done button
In the older version, this line was working fine:
IQKeyboardManager.shared.toolbarDoneBarButtonItemText = "Done"

After migrating to the newest version Xcode suggested me to change that line to this:
IQKeyboardManager.shared.toolbarConfiguration.doneBarButtonConfiguration?.title = "Done"

and start giving me an error that, "Cannot assign to property: 'title' is a 'let' constant"

To Reproduce
Steps to reproduce the behavior:
1- Import IQKeyboardManagerSwift
2- set done button text

Expected behavior
Button text should be change

Screenshots
n/a

Demo Project
n/a

Versions

Xcode: 15.2
Mac OS: 14.3
Simulator/Device: Simulator
Simulator/Device Name: 15Pro
Library Version: 7.0.3

Additional context
Add any other context about the problem here.

@hackiftekhar
Copy link
Owner

You have to set doneBarButtonConfiguration = //new configuration variable

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

2 participants