IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

IQKeyboardManager.shared.toolbarDoneBarButtonItemText = "Готово" don't work

Open fury21 opened this issue 1 year ago • 2 comments

Describe the bug I use last version 7.0.1

I try to set IQKeyboardManager.shared.toolbarDoneBarButtonItemText = "Готово", but see error "'toolbarDoneBarButtonItemText' has been renamed to 'toolbarConfiguration.doneBarButtonConfiguration.title': To change, please assign a new toolbarConfiguration.doneBarButtonConfiguration"

How to set DoneButton title?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Demo Project If applicable, add demo project.

Versions

Xcode: x.x Mac OS: xx.xx.x Simulator/Device: xx.x Simulator/Device Name: iPhone xx Library Version: x.x.x

Additional context Add any other context about the problem here.

fury21 avatar Feb 09 '24 20:02 fury21

Somebody know?

fury21 avatar Feb 15 '24 04:02 fury21

@hackiftekhar help pls, it's ez question)

fury21 avatar Feb 25 '24 05:02 fury21

Somebody, pls :D

fury21 avatar Mar 05 '24 10:03 fury21

@hackiftekhar help pls, it's ez question)

@fury21 You can simply do like this:-

                let config = IQBarButtonItemConfiguration(title: "Готово")
                IQKeyboardManager.shared.toolbarConfiguration.doneBarButtonConfiguration = config

hackiftekhar avatar Mar 10 '24 13:03 hackiftekhar