forked from IdleHandsApps/IHKeyboardAvoiding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IHKeyboardAvoiding.podspec
24 lines (20 loc) · 1.52 KB
/
IHKeyboardAvoiding.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pod::Spec.new do |s|
s.name = 'IHKeyboardAvoiding'
s.version = '2.5'
s.summary = 'IHKeyboardAvoiding is an elegant solution for keeping any UIView visible when the keyboard is being shown'
s.homepage = 'https://github.com/IdleHandsApps/IHKeyboardAvoiding/'
s.description = <<-DESC
IHKeyboardAvoiding will translate any UIView up when the keyboard is being shown, then return it when the keyboard is hidden.
Two views are registered with IHKeyboardAvoiding, the avoidingView which is moved, and one or more targetViews which will trigger the avoiding. If a targetView's frame will be intersected by the keyboard, then the avoidingView will move up just above the keyboard.
What sets IHKeyboardAvoiding apart from other keyboard avoiding solutions is that it doesn't require placing your content in a UIScrollView. No scroll view is used. And it isn't restricted to keeping UITextFields visible, instead any UIView can be a target which will be kept visible
If Autolayout is used then the constraints are animated, otherwise a CGAffine translation is done
DESC
s.license = 'MIT'
s.author = { 'Fraser Scott-Morrison' => 'fraserscottmorrison@me.com' }
s.source = { :git => 'https://github.com/IdleHandsApps/IHKeyboardAvoiding.git', :tag => s.version.to_s }
s.platform = :ios, '5.0'
s.source_files = 'Classes/*.{h,m}'
s.public_header_files = 'Classes/*.h'
s.ios.deployment_target = '5.0'
s.requires_arc = true
end