Skip to content

Commit

Permalink
Added pod for IQKeyboardManagerSwift, closed #236
Browse files Browse the repository at this point in the history
Former-commit-id: f2f7778
  • Loading branch information
hackiftekhar committed Aug 30, 2015
1 parent d16ea33 commit 2798b98
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
6 changes: 3 additions & 3 deletions IQKeyboardManager.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "IQKeyboardManager"
s.version = "3.2.4"
s.version = "3.3.0"
s.summary = "Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView."
s.homepage = "https://github.com/hackiftekhar/IQKeyboardManager"
s.screenshots = "https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/KeyboardTextFieldDemo/Screenshot/IQKeyboardManagerScreenshot.png"
s.screenshots = "https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/Screenshot/IQKeyboardManagerScreenshot.png"
s.license = 'MIT'
s.author = { "Iftekhar Qurashi" => "hack.iftekhar@gmail.com" }
s.platform = :ios, '5.0'
s.source = { :git => "https://github.com/hackiftekhar/IQKeyboardManager.git", :tag => "v3.2.4" }
s.source = { :git => "https://github.com/hackiftekhar/IQKeyboardManager.git", :tag => "v3.3.0" }
s.source_files = 'Classes', 'IQKeyBoardManager/**/*.{h,m}'
s.resources = "IQKeyBoardManager/Resources/IQKeyboardManager.bundle"
s.requires_arc = true
Expand Down
14 changes: 14 additions & 0 deletions IQKeyboardManagerSwift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |s|
s.name = "IQKeyboardManagerSwift"
s.version = "3.3.0"
s.summary = "Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView."
s.homepage = "https://github.com/hackiftekhar/IQKeyboardManager"
s.screenshots = "https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/Screenshot/IQKeyboardManagerScreenshot.png"
s.license = 'MIT'
s.author = { "Iftekhar Qurashi" => "hack.iftekhar@gmail.com" }
s.platform = :ios, '8.0'
s.source = { :git => "https://github.com/hackiftekhar/IQKeyboardManager.git", :tag => "v3.3.0" }
s.source_files = 'Classes', 'IQKeyboardManagerSwift/**/*.{swift}'
s.resources = "IQKeyboardManagerSwift/Resources/IQKeyboardManager.bundle"
s.requires_arc = true
end
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,36 @@ Installation

#### Cocoapod Method:-

IQKeyboardManager is available through [CocoaPods](http://cocoapods.org), to install
***IQKeyboardManager (Objective-C):-*** IQKeyboardManager is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile: ([#9](https://github.com/hackiftekhar/IQKeyboardManager/issues/9))

pod 'IQKeyboardManager'
pod 'IQKeyboardManager'

***IQKeyboardManager (Swift):-*** IQKeyboardManagerSwift is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile: ([#236](https://github.com/hackiftekhar/IQKeyboardManager/issues/236))

pod 'IQKeyboardManagerSwift'

In AppDelegate.swift, just import IQKeyboardManagerSwift framework and enable IQKeyboardManager.

```
import IQKeyboardManagerSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
IQKeyboardManager.sharedManager().enable = true
return true
}
}
```



#### Source Code Method:-

Expand Down

0 comments on commit 2798b98

Please sign in to comment.