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

Submit IQKeyboardManagerSwift to CocoaPods #236

Closed
retsohuang opened this issue Jun 12, 2015 · 18 comments
Closed

Submit IQKeyboardManagerSwift to CocoaPods #236

retsohuang opened this issue Jun 12, 2015 · 18 comments

Comments

@retsohuang
Copy link
Contributor

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

@joaopedrok
Copy link

Agreed

@hieuld
Copy link

hieuld commented Jun 23, 2015

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.

@retsohuang
Copy link
Contributor Author

@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.

@hieuld
Copy link

hieuld commented Jun 26, 2015

Thanks, I will check on that. :)

@mihirpmehta
Copy link

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

hackiftekhar added a commit that referenced this issue Jul 12, 2016
@PurviJani
Copy link

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

@retsohuang
Copy link
Contributor Author

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

@PurviJani
Copy link

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"

@retsohuang
Copy link
Contributor Author

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

@hackiftekhar
Copy link
Owner

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

@PurviJani
Copy link

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

@hackiftekhar
Copy link
Owner

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

@PurviJani
Copy link

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

@hackiftekhar
Copy link
Owner

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

@PurviJani
Copy link

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

@hackiftekhar
Copy link
Owner

hackiftekhar commented Oct 12, 2016

I'm also using Xcode8

@PurviJani
Copy link

PurviJani commented Apr 20, 2017 via email

@yunustek
Copy link

yunustek commented Mar 11, 2018

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants