hackiftekhar / IQKeyboardManager

Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Submit IQKeyboardManagerSwift to CocoaPods

retsohuang opened this issue · comments

It would be great if you can add CocoaPods support for Swift version.

Agreed

So for now, we have to use the bridge for the swift project? I am realy looking forward the IQKeyboardManager for Swift version. Thanks for your effort.

@hieuld If your app support iOS 8 above, you can use IQKeyboardManager objc version don't need bridging header by include use_frameworks! at Podfile, otherwise you have to use bridging header or drag and drop IQKeyboardManager for Swift version to your project.

Thanks, I will check on that. :)

i have used use_frameworks! in my podfile. It still downloads objective C files only. no swift files at all

Hello, i tried both pod 'IQKeyboardManagerSwift','4.0.6' and pod 'IQKeyboardManagerSwift'
IQKeyboardManagerSwift for Xcode 8, Swift 3 but it's not working....Please help me

For pod 'IQKeyboardManagerSwift'
import IQKeyboardManagerSwift
IQKeyboardManager.sharedManager().enable = true

And For: 'IQKeyboardManagerSwift','4.0.6'
drag And Drop IQKeyboardManagerSwift
IQKeyboardManager.sharedManager().enable = true

Hi @PurviJani
Can you share your Podfile? And what version of Swift you use? Swift 3 or Swift 2.3?

Yeah Sure. I am using Swift 3 Xcode 8
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'Alamofire', '~> 4.0'

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

pod 'SVProgressHUD'

pod 'Google/SignIn'

pod 'IQKeyboardManagerSwift','4.0.6'

pod 'EAIntroView', '~> 2.9.0'

pod 'SMPageControl', '~> 1.2'

pod "SwiftSignatureView"

Podfile seems good, can you update CocoaPods to the latest version and try again? Or provide a sample project that can reproduce the issue.

Looks like your local repo isn't updated, please update cocoapods local repo and then try again.

Hey my pod version is 0.39.0 & I have also installed ruby 2.3.1 still it isn't working. Please help me.

Please update pod version. You are using outdated version of CocoaPods.

Now my pod version is 1.1.0.rc.2 still it's not working.

Then I think it's something our mistake and not the library because it's working great on my system.

It was working perfectly in xcode 7.2 i am facing problems in xcode 8

I'm also using Xcode8

Hi, I tried for iOS 10, but it's not working. Textview is underneath the keyboard.
This command does not work:
IQKeyboardManager.sharedManager().keyboardDistanceFromTextField = 100
it's working only on ios 11 device. Can you help me?
Xcode 9 swift 4
POD: IQKeyboardManagerSwift (5.0.4)
COCOAPODS: 1.3.1

SOLVED
I fixed it to safearea. I tried fixing it to view and it happen :)