IQKeyboardManager
IQKeyboardManager copied to clipboard
IQKeyboardManager.shared.enabled = true throwing error in Xcode
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.
Are you using Obj-C version in swift?
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.
IQKeyboardManager.shared.enable = true