Skip to content

Commit

Permalink
Added support for UITabBarController
Browse files Browse the repository at this point in the history
  • Loading branch information
chanonly123 committed Aug 10, 2017
1 parent aa1c541 commit 8239b97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AutoKeyboard.podspec
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "AutoKeyboard"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "Automatic Keyboard handling with ease"
s.description = "Automatic bottom constraints changes with extreamly easy integration."
s.homepage = "https://github.com/chanonly123/AutoKeyboard"
Expand Down Expand Up @@ -80,7 +80,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/chanonly123/AutoKeyboard.git", :tag => "1.0.1" }
s.source = { :git => "https://github.com/chanonly123/AutoKeyboard.git", :tag => "1.0.2" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
3 changes: 2 additions & 1 deletion AutoKeyboard/AutoKeyboard/AutoKeyboard.swift
Expand Up @@ -41,7 +41,8 @@ extension UIViewController {
let const = getBottomConstrainsts()
for each in const {
if let savedValue = saved[each] {
each.constant = savedValue + keyboardFrameEnd.height
let tabBarHeight : CGFloat = (tabBarController?.tabBar.isHidden ?? true) ? 0 : tabBarController?.tabBar.bounds.height ?? 0
each.constant = savedValue + keyboardFrameEnd.height - tabBarHeight
}
}
animateWithKeyboardEventNotified(notification: notification)
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -6,6 +6,7 @@ Automatic Keyboard handling with ease. It is fully automatic keyboard handling.
![alt tag](https://github.com/chanonly123/AutoKeyboard/blob/master/demo.gif)

## Features
- UITabBarController support added.
- UIViewController extension, no need to extend classes.
- Device rotation supported.
- Multiple UIViewController support.
Expand Down

0 comments on commit 8239b97

Please sign in to comment.