IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

IQKeyboardManager.shared.enabled = true throwing error in Xcode

Open alexkhazzam opened this issue 2 years ago • 3 comments

IQKeyboardManager.shared().isEnabled = true works for some reason whereas IQKeyboardManager.shared.enabled is giving the error Value of type '() -> IQKeyboardManager' has no member 'enabled'. It is a bit odd that the former code snippet is working, given that it is not present anywhere on the README. Just thought I should point this out! Anyways, thanks for this amazing package.

alexkhazzam avatar Jul 12 '22 16:07 alexkhazzam

Are you using Obj-C version in swift?

hackiftekhar avatar Jul 30 '22 07:07 hackiftekhar

alexkhazzam,

If you by accident installed the POD file called "IQKeyboardManager", you installed the Obj-C version, and because of that you might face your error.

Instead, install the Swift version, the POD file called "IQKeyboardManagerSwift". The error will stop.

robee9 avatar Aug 02 '22 21:08 robee9

IQKeyboardManager.shared.enable = true

anvar0522 avatar Sep 21 '22 09:09 anvar0522